Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Last active May 20, 2018 18:38
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 chathurangat/b075f69578869b5dd5447cedec265c35 to your computer and use it in GitHub Desktop.
Save chathurangat/b075f69578869b5dd5447cedec265c35 to your computer and use it in GitHub Desktop.
var path = require("path");
module.exports = {
module: {
rules: [
{
//only the js and jsx will be considered
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
presets: ['env']
}
}
]
},
plugins: [new UglifyJSPlugin()],
entry: {
app: './src/app.js'
},
output: {
filename: 'final.bundle.js',
path: path.resolve(__dirname, 'dist')
},
mode: 'development'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment