Simple setup for Sass and JS compilation using Laravel Mix. I use when I need to quickly compile these assets when e.g. working on barebone builds.
Make sure all dependencies have been installed before moving on:
Clone this repository and run
yarn
or npm install
to install dependenciesTask Name | Description |
---|---|
yarn dev or npm run dev |
Run all Mix tasks |
yarn watch or npm run watch |
Run all Mix tasks and watch all relevant files for changes (assets unminified) |
yarn watch-prod or npm run watch-prod |
Run all Mix tasks and watch all relevant files for changes (assets minified) |
yarn hot or npm run hot |
Hot module replacement |
yarn prod or npm run prod |
Run all Mix tasks and minify output |
Copyright 2020 Tomasz Bujnowicz under the MIT license.