irbis45 / multimix

multiple builds with Laravel Mix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

  1. Run npm install to set up the dependencies.
  2. Modify webpack.mix.admin.js or webpack.mix.website.js if you want to change sources and destinations, or to play around with the build process of course.
  3. 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.

About

multiple builds with Laravel Mix


Languages

Language:HTML 51.5%Language:JavaScript 48.5%