Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Cunha petercunha

View GitHub Profile
@petercunha
petercunha / webpack.config.js
Last active Feb 18, 2017 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
View webpack.config.js
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
var path = require('path');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: path.join(__dirname, "/js"),