There are primary tools:
- Webpack
- npm
- Browsersync
Clone the code:
git clone https://github.com/cuonghuynh/webpack-es6-boilerplate project-name
Install front-end packages
yarn
Run these script commands
yarn build
- compile and optimize the files inassets
directoryyarn build:production
- compile assets for productionyarn start
- Compile assets when file changes are made, start Browersync session
Read more details at Sage document.