Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created March 16, 2016 13:48
Show Gist options
  • Save chuck0523/f0633ffe806dbee6ffba to your computer and use it in GitHub Desktop.
Save chuck0523/f0633ffe806dbee6ffba to your computer and use it in GitHub Desktop.
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: ['./index'],
output: {
path: __dirname,
filename: 'bundle.js'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compressor: {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
],
module: {
loaders: [
{ test: /\.js$/,
loader: "babel",
query: {
presets: ["react", "es2015", "stage-0"]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment