Switch to the root of the subproject
Run npm install (first time only)
npm run build
You can rebuild all the assets at once by executing this command from the project root:
./tools/assets/build.sh # or alternatively, since 1.7.8: make assets
You can also make webpack listen for changes and compile only what’s needed as you work on your files:
npm run watch
Rebuild your changes before committing.
The “watch” build will optimize your assets for development. Please remember to rebuild for production when you are done using
npm run build.
npm install fails with error:
Failed at the ... postinstall script.:
You may be using node version 9 or 10, you should use node version 8.