Brandon Martinez | brandonmartinez.com | @brandonmartinez
Skyline Technologies (We're Hiring!) | skylinetechnologies.com | @skylinetweets
A Task Runner is a build system that can be used for task automation. It can be used to minify and combine JavaScript, preprocess CSS via SASS or LESS, copy vendor assets from package managers like NPM, and more.
sass: {
dist: {
options: {
outputStyle: 'compressed',
sourceMap: true
},
src: buildConfig.app.styles.files,
dest: buildConfig.dist.styles,
}
},
gulp.task('styles', function (cb) {
pump([
gulp.src(buildConfig.app.styles.files),
sass({
outputStyle: 'compressed'
}),
gulp.dest(buildConfig.dist.basePath)
], cb);
});
A Bundler is a tool in a build chain that gathers multiple files together and bundles them into components.
entry: {
app: buildConfig.app.scripts.cwd + 'app.jsx'
},
output: {
filename: '[name].min.js',
path: buildConfig.dist.basePath
},
Brandon Martinez | brandonmartinez.com | @brandonmartinez
Skyline Technologies (We're Hiring!) | skylinetechnologies.com | @skylinetweets