Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Frontend

Webpack

Webpack makes it relatively easy to compile and minify your application’s CSS and JavaScript files. However, you are not required to use it while developing your application; you are free to use any asset pipeline tool you wish, or even none at all.

Installation Instructions:

Updating packages

To update all npm packages run:

npm update

Installing packages

To install a public package, on the command line, run:

npm install <package_name>

Compiling Assets

To compile all assets for development, run:

npm run build:dev

To compile and minify all assets for production, run:

npm run build

To watch files and recompile whenever they change, run:

npm run watch

Read more