Skip to content

Instantly share code, notes, and snippets.

@a1exlism
Created March 3, 2018 05:45
Show Gist options
  • Save a1exlism/46cee585ca259a29390fd2cedb18d8ac to your computer and use it in GitHub Desktop.
Save a1exlism/46cee585ca259a29390fd2cedb18d8ac to your computer and use it in GitHub Desktop.
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry = './main.js',
output: {
filename: 'bundle.js',
},
plugins: [
new UglifyJsPlugin();
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment