@zohodesk/client_build_tool 0.0.6-exp.48 → 0.0.6-exp.49

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.
@@ -16,7 +16,7 @@ const defaultTemplates = {
16
16
  html: ['index.html', 'index.[contenthash].html'],
17
17
  js: ['js/[name].js', 'js/[name].[contenthash]_.js'],
18
18
  chunkjs: ['js-chunk/[name].js', 'js-chunks/[name].[contenthash]_.js'],
19
- i18njs: ['i18n-chunk/[locale]/[name].i18n.js', 'i18n-chunk/[locale]/[name].[chunkhash]_.i18n.js'],
19
+ i18njs: ['i18n-chunk/[locale]/[name].i18n.js', 'i18n-chunk/[locale]/[name].[chunkhash:20]_.i18n.js'],
20
20
  i18nchunkjs: ['i18n-chunk/[locale]/[name].i18n.js', // 'i18n-chunk/[locale]/[name].[chunkhash].i18n.js'
21
21
  'i18n-chunk/[locale]/[name].[contenthash]_.i18n.js'],
22
22
  i18nmanifest: ['i18n-manifest.json', 'i18n-manifest.json'],
@@ -44,22 +44,25 @@ class SourceMapPlugin {
44
44
  }
45
45
  }
46
46
  });
47
- });
48
- compilation.hooks.processAssets.tap({
49
- name: pluginName,
50
- stage: _webpack.Compilation.PROCESS_ASSETS_STAGE_DERIVED // additionalAssets: true
51
-
52
- }, assets => {
53
- Object.keys(assets).forEach(assetName => {
54
- if (assetName.includes('runtime') && skipRuntimeFiles(assetName)) {
55
- const runtimeAssetCode = assets[assetName].source();
56
- const newAssetName = `smap/${assetName}`;
57
- compilation.emitAsset(newAssetName, new RawSource(runtimeAssetCode));
58
- }
59
-
60
- ;
61
- });
62
- });
47
+ }); // if contenthash enabled we need to add this to include the runtime files
48
+ // compilation.hooks.processAssets.tap(
49
+ // {
50
+ // name: pluginName,
51
+ // stage: Compilation.PROCESS_ASSETS_STAGE_DERIVED
52
+ // // additionalAssets: true
53
+ // },
54
+ // assets => {
55
+ // Object.keys(assets).forEach(assetName => {
56
+ // if (assetName.includes('runtime') && skipRuntimeFiles(assetName) ) {
57
+ // const runtimeAssetCode = assets[assetName].source();
58
+ // const newAssetName = `smap/${assetName}`;
59
+ // compilation.emitAsset(
60
+ // newAssetName,
61
+ // new RawSource(runtimeAssetCode)
62
+ // );
63
+ // };
64
+ // });
65
+ // });
63
66
  });
64
67
  }
65
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.6-exp.48",
3
+ "version": "0.0.6-exp.49",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {