Skip to content

Instantly share code, notes, and snippets.

@augustogoulart
Last active November 21, 2017 21:51
Show Gist options
  • Save augustogoulart/033af54396ba9811a2552222b18469b8 to your computer and use it in GitHub Desktop.
Save augustogoulart/033af54396ba9811a2552222b18469b8 to your computer and use it in GitHub Desktop.
Simple webpack config
const webpack = require('webpack');
module.exports = {
entry: {
filename: './app.js',
},
output: {
filename: './build.js',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015'],
},
},
],
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false },
output: { comments: false },
}),
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment