Skip to content

Instantly share code, notes, and snippets.

@wenbochang
Created June 29, 2016 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wenbochang/b1561d4a4c20faa4f854ab28112ce8c5 to your computer and use it in GitHub Desktop.
Save wenbochang/b1561d4a4c20faa4f854ab28112ce8c5 to your computer and use it in GitHub Desktop.
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './src/main.js',
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js'
},
devtool: 'cheap-module-source-map',
module: {
loaders: [
{
test: path.join(__dirname, 'src'),
loader: 'babel-loader'
}
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment