This generator produces every file needed for convenient web development less advanced things. Also provides benefits like image optimization and hot reload.
Install globally gulp-generate with npm or yarn:
npm install -g gulp-generate
yarn global add gulp-generate
gulp-generate <project_name>
To enable Development version with live preview and changes catching, simply write:
gulp
or
gulp dev
To skip image optimization on start, type:
gulp lite
To build your website write:
gulp build
Simply change values in gulpfile.js
:
// ------- EDIT SECTION ------- //
var distDir = "dist",
buildDir = "docs",
srcDir = "src",
assetsDir = "img";
var imageQuality = {
jpg: 80, // 0 - 100%
png: 6 // 1 - 7
};
// ----------- END ----------- //
Karol Waliszewski – karolwaliszewski@gmail.com