Last active
November 21, 2017 21:51
-
-
Save augustogoulart/033af54396ba9811a2552222b18469b8 to your computer and use it in GitHub Desktop.
Simple webpack config
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
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