Skip to content

Instantly share code, notes, and snippets.

@SigurdMW
SigurdMW / standard-gulp-setup
Last active May 23, 2017 11:55
A simple and standard setup of Gulp
// filemane: gulpfile.js
// ruby must be installed, then run gem install sass
// npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del gulp-babel babel-preset-env --save-dev
// also need to get jshint to work: .jshintrc
/*
UPDATE: without ruby: https://github.com/dlmanning/gulp-sass
ex:
@SigurdMW
SigurdMW / webpack.config.js
Created May 8, 2017 10:31
Simple Webpack + babel setup
// remember to run first: npm i --save-dev webpack path babel-core babel-preset-es2015 babel-loader
/* Simplistic .babelrc file:
{
"presets": ["es2015"]
}
*/
var path = require('path');