@workleap/webpack-configs 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @workleap/webpack-configs
2
2
 
3
+ ## 1.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#146](https://github.com/gsoft-inc/wl-web-configs/pull/146) [`0b259b0`](https://github.com/gsoft-inc/wl-web-configs/commit/0b259b0849e32c49f78be2f9869a5daea0b4c6f3) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Replaced build option "minify" for "optimize"
8
+
3
9
  ## 1.0.7
4
10
 
5
11
  ### Patch Changes
package/dist/build.d.ts CHANGED
@@ -17,7 +17,7 @@ interface DefineBuildConfigOptions {
17
17
  plugins?: Configuration["plugins"];
18
18
  htmlWebpackPlugin?: boolean | HtmlWebpackPlugin.Options;
19
19
  miniCssExtractPluginOptions?: MiniCssExtractPluginOptions;
20
- minify?: boolean;
20
+ optimize?: boolean;
21
21
  cssModules?: boolean;
22
22
  environmentVariables?: Record<string, unknown>;
23
23
  transformers?: WebpackConfigTransformer[];
package/dist/build.js CHANGED
@@ -1,3 +1,3 @@
1
- export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-YV535KHL.js';
1
+ export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-TMMN6LWG.js';
2
2
  import './chunk-P2Z3EEVF.js';
3
3
  import './chunk-QJI26K46.js';
@@ -51,7 +51,7 @@ function defineBuildConfig(swcConfig, options = {}) {
51
51
  plugins = [],
52
52
  htmlWebpackPlugin = defineBuildHtmlWebpackPluginConfig(),
53
53
  miniCssExtractPluginOptions = defineMiniCssExtractPluginConfig(),
54
- minify = true,
54
+ optimize = true,
55
55
  cssModules = false,
56
56
  // Using an empty object literal as the default value to ensure
57
57
  // "process.env" is always available.
@@ -100,7 +100,7 @@ function defineBuildConfig(swcConfig, options = {}) {
100
100
  timestamp: true
101
101
  }
102
102
  } : void 0,
103
- optimization: minify ? {
103
+ optimization: optimize ? {
104
104
  minimize: true,
105
105
  minimizer: [
106
106
  new TerserPlugin({
@@ -111,7 +111,11 @@ function defineBuildConfig(swcConfig, options = {}) {
111
111
  }
112
112
  })
113
113
  ]
114
- } : void 0,
114
+ } : {
115
+ minimize: false,
116
+ chunkIds: "named",
117
+ moduleIds: "named"
118
+ },
115
119
  infrastructureLogging: verbose ? {
116
120
  appendOnly: true,
117
121
  level: "verbose",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-YV535KHL.js';
1
+ export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-TMMN6LWG.js';
2
2
  export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-NFWTRG4S.js';
3
3
  import './chunk-P2Z3EEVF.js';
4
4
  import './chunk-QJI26K46.js';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@workleap/webpack-configs",
3
3
  "author": "Workleap",
4
4
  "description": "Workleap recommended webpack config.",
5
- "version": "1.0.7",
5
+ "version": "1.0.8",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "workleap",