The default Gulp task will run following subtasks:
- set-watch: Helper task
- html: All
.html
files are copied from pages
to dist
. Only newer files are copied during the development later on.
- browser-sync: Starts a BrowserSync on port
3000
served from dist
, defaults to index.html
.
- vendor: Copies 3rd party modules to the vendor directory based on our
package.json
dependencies
- sass-dev: Compiles style.default.scss into style.default.css - no sourcemaps, no autoprefixing, no minification for better performance
- copy: Copies static assets from folders defined in the
copy
in the gulpfile.js
. )
After running all these subtasks, there is a watcher set for changes in the HTML, SCSS and static asset files. This means, every time you will edit a .html, .scss
file or add a new file to e.g. img
folder, it will be automatically also compiled/copied into dist
folder and the BrowserSync will automatically reload your localhost page(s) in your browser.