@zohodesk/client_build_tool 0.0.6-exp.30 → 0.0.6-exp.31

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.
@@ -40,10 +40,13 @@ function optimizationConfig(options) {
40
40
  splitChunks: (0, _splitChunksConfig.splitChunksConfig)(options),
41
41
  minimizer: [// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
42
42
  // '...',
43
- new _terserWebpackPlugin.default({
43
+ excludeList !== '' ? new _terserWebpackPlugin.default({
44
44
  exclude: excludeList,
45
45
  extractComments: false // Do not extract comments to .LICENSE.txt files
46
46
 
47
+ }) : new _terserWebpackPlugin.default({
48
+ extractComments: false // Do not extract comments to .LICENSE.txt files
49
+
47
50
  }), (0, _configCSSMinifierPlugin.configCSSMinifierPlugin)(options)].filter(Boolean),
48
51
  moduleIds: 'named',
49
52
  runtimeChunk: {
@@ -22,7 +22,7 @@ function configCSSMinifierPlugin(options) {
22
22
  // return new UglifyCSSPlugin();
23
23
 
24
24
 
25
- return new _cssMinimizerWebpackPlugin.default({
25
+ return excludeList !== '' ? new _cssMinimizerWebpackPlugin.default({
26
26
  exclude: excludeList
27
- });
27
+ }) : new _cssMinimizerWebpackPlugin.default();
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.6-exp.30",
3
+ "version": "0.0.6-exp.31",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {