Skip to content

Commit

Permalink
Merge pull request #15 from speller/master
Browse files Browse the repository at this point in the history
Remove UglifyJs plugin
  • Loading branch information
benjie authored May 26, 2019
2 parents 64bc50f + 4ee8ba0 commit 2b1a9fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const { options: postgraphileOptions } = require('./src/postgraphileOptions.js');

module.exports = {
Expand Down Expand Up @@ -45,8 +45,8 @@ module.exports = {
},
optimization: {
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
new TerserPlugin({
terserOptions: {
// Without this, you may get errors such as
// `Error: GraphQL conflict for 'e' detected! Multiple versions of graphql exist in your node_modules?`
mangle: false,
Expand Down

0 comments on commit 2b1a9fb

Please sign in to comment.