Skip to content

Instantly share code, notes, and snippets.

View petercunha's full-sized avatar

Peter Cunha petercunha

View GitHub Profile
@petercunha
petercunha / webpack.config.js
Last active February 18, 2017 18:23 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
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"),