A Laravel Mix extension to automatically create icon fonts with SVGs from a folder.
npm i mix-white-sass-icons
yarn add mix-white-sass-icons
In your webpack.mix.js
file:
require('mix-white-sass-icons');
// First argument is the folder with SVGs, second argument is the folder where the font files should be saved.
mix.icons('resources/icons', 'resources/fonts');