Last active
May 2, 2017 22:12
-
-
Save evenstensberg/bff1da6851d81844de76c736d2fc566d to your computer and use it in GitHub Desktop.
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
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