A Gulp.js workflow for JavaScript, Sass, and image optimization.
Download, include in your project, and run:
$ npm start
- Sass compilation, vendor prefixing, and minification
- JavaScript module bundling and optimization
- Image optimization
- Local development environment with real-time compiliation
- File size reporting
- Code formatting rules (EditorConfig and JS Beautifier)
Start a local development environment that compiles assets, watches for changes, then recompiles as needed:
$ npm start
Optimized build:
$ npm run build
Several configurable paths and options are stored in the gulpfile's config
object.
Type: Array
Supported browsers for your project; used for CSS vendor prefixes. See Autoprefixer for possible values.
Type: String
Folder where assets are to be saved.
Type: Boolean
Flag for whether or not script should be running as a development environment (watching, recompiling). This value is passed in as a command line flag. (e.g. $ gulp --dev
)
Type: Object
Where to output assets.
Type: String
or Array
Type: String
or Array
Type: String
or Array
Type: Object
Pointer to source files.
Type: String
or Array
Type: String
or Array
Type: String
or Array