Created
March 31, 2017 12:21
-
-
Save roberto-butti/3550ed239c9d544d48db8397d283df79 to your computer and use it in GitHub Desktop.
Minimal Webpack config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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