Answer the question
In order to leave comments, you need to log in
How to set build order of js files via mix?
Hello!
There is a file in laravel webpack.mix.js with the content:
let widgets = require('laravel-mix');
widgets.setPublicPath('../public_html/widget/');
widgets.js([
'resources/assets/js/widgets/script_prod.js',
'resources/assets/js/widgets/script.js',
], 'script.js');
widgets.js([
'resources/assets/js/widgets/script_dev.js',
'resources/assets/js/widgets/script.js',
], 'script_dev.js');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question