Skip to content

Instantly share code, notes, and snippets.

View JaySpears's full-sized avatar
🏠
Working from home

Josh Spears JaySpears

🏠
Working from home
View GitHub Profile
@JaySpears
JaySpears / webpack.config.js
Created May 8, 2017 16:15
Webpack 2.0 Configuration with React Example
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:3000/',
'webpack/hot/only-dev-server',
path.resolve(__dirname, 'app/index')
],
@JaySpears
JaySpears / Gruntfile.js
Created June 16, 2016 13:22
Gruntfile.js configuration.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Converts SASS to CSS.
sass: {
dist: {
options: {
style: 'expanded',
noCache: true
@JaySpears
JaySpears / gulpfile.js
Last active July 15, 2016 13:19
gulpfile.js configuration setup for front-end development.
// Require Gulp and plugins.
var gulp = require('gulp'),
watch = require('gulp-watch'),
sass = require('gulp-sass'),
cleanCSS = require('gulp-clean-css'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat');
// Task to compile sass to css.