webpack.config.js in jot-ruby-js-0.1.3 vs webpack.config.js in jot-ruby-js-0.1.4

- old
+ new

@@ -1,11 +1,23 @@ -var webpack = require("webpack"); -var path = require("path"); +const webpack = require("webpack"); +const path = require("path"); +const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); module.exports = { output: { path: path.resolve(__dirname, 'vendor'), filename: 'jot.js' + }, + optimization: { + minimizer: [ + new UglifyJsPlugin({ + uglifyOptions: { + output: { + comments: false + } + } + }) + ] }, entry: path.resolve(__dirname, 'jot/browser_example/browserfy_root'), mode: 'production' }