Skip to content

Instantly share code, notes, and snippets.

@rajatbarman
rajatbarman / webpack.config.js
Last active November 18, 2016 11:14 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
View webpack.config.js
//Explanation for the config file can be found here https://webpack.github.io/docs/configuration.html
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",