Skip to content

Instantly share code, notes, and snippets.

@evenstensberg
Last active May 2, 2017 22:12
Show Gist options
  • Save evenstensberg/bff1da6851d81844de76c736d2fc566d to your computer and use it in GitHub Desktop.
Save evenstensberg/bff1da6851d81844de76c736d2fc566d to your computer and use it in GitHub Desktop.
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'./src/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'index.js'
},
module: {
rules: [{
test: /\.js$/,
use: 'babel',
include: path.join(__dirname, 'src')
}]
},
resolve: {
modules: ['node_modules', path.resolve('/src')]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
sourceMap: true
}),
new webpack.optimize.LoaderOptionsPlugin({
'debug': true,
'minimize': true
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment