Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
laravel-mix-icomoon
Advanced tools
Laravel Mix extension to generate icomoon fonts.
Now you can put your generated Icomoon font icons in ZIP file to custom directory, extension will automatically regenerate CSS to your desire.
This extension uses Gulp 4. This can create unexpected behavior if you are using older version of Gulp inside your project.
Install the extension:
npm install laravel-mix-icomoon
Or if you prefer yarn:
yarn add laravel-mix-icomoon
Next require the extension inside your Laravel Mix config and call icomoon()
in your pipeline:
// webpack.mix.js
const mix = require('laravel-mix');
require('laravel-mix-icomoon');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.icomoon();
If nothing is passed to the extension inside your Laravel Mix config, the following options will be used:
{
inputPath: 'resources/icomoon',
publicPath: 'public',
output: 'fonts/icomoon',
cssFile: 'resources/sass/_icomoon.scss',
reload: true,
debug: false
}
inputPath
(string). Your icomoon data path. Place your Icomoon generated ZIP file here.publicPath
(string). Your application's public path.output
(string). Where decompressed fonts will be saved. Relative to the publicPath
.cssFile
(string). Path to CSS file, where icomoon fonts will be declared.reload
(boolean). Whenever to reload browser after success. I recommend having this option enabled since Laravel Mix's SASS HMR (when running npm run hot
) is not "perfect".debug
(boolean). Whenever to log extension events messages to the console.laravel-mix
version 6FAQs
Laravel Mix extension to generate icomoon fonts.
The npm package laravel-mix-icomoon receives a total of 8 weekly downloads. As such, laravel-mix-icomoon popularity was classified as not popular.
We found that laravel-mix-icomoon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.