We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 022d78f commit 67e5219Copy full SHA for 67e5219
nextjs-ecommerce-oneclick/next.config.js
@@ -0,0 +1,22 @@
1
+// next.config.js
2
+const TerserPlugin = require('terser-webpack-plugin');
3
+
4
+module.exports = {
5
+ future: {
6
+ webpack5: true,
7
+ },
8
+ webpack: function (config) {
9
+ Object.assign(config.optimization, {
10
+ minimize: false,
11
+ minimizer: [
12
+ new TerserPlugin({
13
+ terserOptions: {
14
+ keep_fnames: true, // don't strip function names in production
15
16
+ }),
17
+ ],
18
+ });
19
20
+ return config;
21
22
+};
0 commit comments