Skip to content

Commit 2b1a9fb

Browse files
authored
Merge pull request #15 from speller/master
Remove UglifyJs plugin
2 parents 64bc50f + 4ee8ba0 commit 2b1a9fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webpack.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22
const webpack = require('webpack');
3-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
3+
const TerserPlugin = require('terser-webpack-plugin');
44
const { options: postgraphileOptions } = require('./src/postgraphileOptions.js');
55

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

0 commit comments

Comments
 (0)