Build System

We use laravel mix for building JS and sccs.

Building for Production#

We can perform a one-time build targeted for production that includes minified SCSS and JS, along with CacheBusting.

npm run build

Building for Development#

One Time Development Build#

We can perform a one-time build that includes SCSS and JS (with sourcemaps), and CacheBusting.

npm run dev

Automatically Watching For Changes and Rebuilding#

The watch command#

The watch command will start a local http proxy server to your configured site url. You will find the proxy available at http://localhost:3000, and by accessing the site via the proxy during development you will benefit from live reloading (on js, scss, or twig changes) along with JS and SCSS processing.

 npm run watch