mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Added terser-webpack-plugin
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const path = require("path");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
/**
|
||||
* @see https://developers.cloudflare.com/workers/cli-wrangler/webpack
|
||||
@@ -9,6 +10,22 @@ module.exports = {
|
||||
entry: "./src/index.ts",
|
||||
target: "webworker",
|
||||
|
||||
/** Adding more minifization (for what it can apply... ) */
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
parallel: true,
|
||||
terserOptions: {
|
||||
format: {
|
||||
comments: false,
|
||||
},
|
||||
},
|
||||
extractComments: false,
|
||||
}),
|
||||
],
|
||||
},
|
||||
|
||||
/**
|
||||
* "development" mode does not support the usage of eval
|
||||
* @see https://github.com/cloudflare/wrangler/issues/1268
|
||||
|
||||
Reference in New Issue
Block a user