Laravel Mix - custom webpack.config.js and webpack.mix.js
Hi guys,
I am looking to start migrating from gulp to webpack during my build processes. My current app has a themes folder and each theme has a gulpfile that I can run with the following command to compile assets for the theme using Laravel Elixir:
gulp --cwd ./ --gulpfile public\themes\[theme-name]\gulpfile.js --production
The above command basically takes that base assets (etc. scss, js, theme-name\base) within the selected theme and compiles them into an assets folder. This has worked a treat for me as it has allowed me to have interchangeable themes.
My question now is, how can I achieve this with Laravel Mix? I have created a new theme folder and copied the webpack.config.js and webpack.mix.js files into the theme folder. Created a couple of new command line in my package.json ensuring that the correct config file is provided, but I am not having any luck with my assets to be compiled to the correct location.
Any ideas?
Please or to participate in this conversation.