Essential starter kit for web application.
- Compiles Scss to CSS
- Scss live reload
- CSS Autoprefixer
- CSS Minifier
- Watchify & Browserify
-
Install dependencies:
npm install
oryarn
-
Run dev:
gulp watch
-
Run dist:
gulp build
The project by default must have the following structure:
app/
scripts/
styles/
images/
public/
...
You are able to change it in gulpfile.babel.js
.
Note that app/scripts/main.js
act as the build entry, recursively all the required module are bundle up into public/bundle.js
.
You need .babelrc
file to compile gulpfile.babel.js
from ES6 to ES5 syntax.