This is an example of a Laravel Mix front-end build system which handles admin panel and website concerns separately. It works with different mix configs and outputs separate Mix manifests. The build scripts are defined in package.json
. It is as simple as possible so that it can be easily adapted to an existing Laravel project.
- Run
npm install
to set up the dependencies. - Modify
webpack.mix.admin.js
orwebpack.mix.website.js
if you want to change sources and destinations, or to play around with the build process of course. - Run one of the build scripts and check out the output (for example
npm run dev
)
I put this together after reading through many excellent replies to various Laravel Mix issues. Feel free to fork this repo and add to it.