I need to configure the build SVG sprites on laravel mix.
I tried several libraries under webpack, result = 0
.
Can someone advise how to configure?
Where to write the handler code in webpack.mix.js or app.js?
I need to configure the build SVG sprites on laravel mix.
I tried several libraries under webpack, result = 0
.
Can someone advise how to configure?
Where to write the handler code in webpack.mix.js or app.js?
One way I was able to get SVG sprites working with Laravele Mix & svg-spritemap-webpack-plugin.
First install the spritemap plugin
Then add config
webpack.mix.js
like that:With this You should be able to add *.svg files into
/resources/assets/svg/*.svg
that are copied to public and get an svg sprite made from/resources/assets/svg/icons/*.svg