I'm using the Metronic theme and installed the packages with npm and now a bunch of what I need is in the node_modules folder.
How do I link to these in laravel mix?
Ive tried googling and reading the laravel mix documentation however kind of stuck on this.
The documentation seems to explain how to import (.js and .css) and copy assets (images etc..)
Working With JavaScript : You could amend the example to something like mix.js('node_modules/metronic/src/js/framework/components/general/menu.js', 'public/js');
Working With Stylesheets : Amend this example to something like mix.sass('node_modules/metronic/src/sass/framework/_config.scss', 'public/css');
Copying Files & Directories : Directly from the example mix.copy('node_modules/foo/bar.css', 'public/css/bar.css');
please note the node_modules/metronic/
path is my best guess
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.