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 75952d4 commit 520b59aCopy full SHA for 520b59a
src/main.ts
@@ -226,17 +226,18 @@ export function createPlugins(
226
// minify only in production mode
227
if (process.env.NODE_ENV === "production") {
228
plugins.push(...[
229
+ // set NODE_ENV to production
230
+ replace({
231
+ 'process.env.NODE_ENV':JSON.stringify('production'),
232
+ }),
233
+ // minify
234
terser({
235
ecma: 2018,
236
warnings: true,
237
compress: {
238
drop_console: false,
239
},
240
}),
- // set NODE_ENV to production
- replace({
- 'process.env.NODE_ENV':JSON.stringify('production'),
- }),
241
])
242
}
243
0 commit comments