Level 7
I think...
mix.copy('node_modules/flag-icon-css', 'public/css/flag-icon-css');
https://github.com/JeffreyWay/laravel-mix/blob/master/docs/copying-files.md
2 likes
I'm trying to install flag-icon-css to my project. I ran npm install flag-icon-css and it created a folder under /node_modules/flag-icon-css. I'm flummoxed what to do at this point though.
I tried adding mix.copy('node_modules/flag-icon-css', 'public/css'); to my webpack.mix.js config but all that did was flatten out the directory structure under node_modules/flag-icon-css and dump every file in every directory /public/css.
Any pointers?
I think...
mix.copy('node_modules/flag-icon-css', 'public/css/flag-icon-css');
https://github.com/JeffreyWay/laravel-mix/blob/master/docs/copying-files.md
Please or to participate in this conversation.