Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Created March 31, 2017 12:21
Show Gist options
  • Save roberto-butti/3550ed239c9d544d48db8397d283df79 to your computer and use it in GitHub Desktop.
Save roberto-butti/3550ed239c9d544d48db8397d283df79 to your computer and use it in GitHub Desktop.
Minimal Webpack config file
const path = require('path');
const webpack = require('webpack');
module.exports = {
context: path.resolve(__dirname, 'src'),
entry: {
app: './app.js',
},
output: {
path: path.resolve(__dirname, 'dist'),
publicPath: '/dist/',
filename: '[name].bundle.js',
},
plugins: [
new webpack.NamedModulesPlugin()
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment