We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64bc50f + 4ee8ba0 commit 2b1a9fbCopy full SHA for 2b1a9fb
webpack.config.js
@@ -1,6 +1,6 @@
1
const path = require('path');
2
const webpack = require('webpack');
3
-const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
+const TerserPlugin = require('terser-webpack-plugin');
4
const { options: postgraphileOptions } = require('./src/postgraphileOptions.js');
5
6
module.exports = {
@@ -45,8 +45,8 @@ module.exports = {
45
},
46
optimization: {
47
minimizer: [
48
- new UglifyJsPlugin({
49
- uglifyOptions: {
+ new TerserPlugin({
+ terserOptions: {
50
// Without this, you may get errors such as
51
// `Error: GraphQL conflict for 'e' detected! Multiple versions of graphql exist in your node_modules?`
52
mangle: false,
0 commit comments