@zohodesk/client_build_tool 0.0.12-exp.7 → 0.0.12-exp.9

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.
@@ -64,7 +64,7 @@ class MurphyInjectorPlugin {
64
64
  }
65
65
 
66
66
  if (this.cdnMapping.isCdnEnabled) {
67
- fileName = childFiles[0];
67
+ fileName = `${this.jsTemplate}${childFiles[0]}`;
68
68
  }
69
69
 
70
70
  ;
@@ -44,6 +44,18 @@ class SourceMapPlugin {
44
44
  }
45
45
  }
46
46
  });
47
+ });
48
+ compilation.hooks.processAssets.tap({
49
+ name: pluginName,
50
+ stage: _webpack.Compilation.PROCESS_ASSETS_STAGE_REPORT
51
+ }, assets => {
52
+ Object.keys(assets).forEach(assetName => {
53
+ const assetCode = assets[assetName].source();
54
+
55
+ if (/\.map$/.test(assetName)) {
56
+ compilation.emitAsset(assetName.split('smap/')[1], new RawSource(assetCode));
57
+ }
58
+ });
47
59
  }); // if contenthash enabled we need to add this to include the runtime files
48
60
  // compilation.hooks.processAssets.tap(
49
61
  // {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.12-exp.7",
3
+ "version": "0.0.12-exp.9",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {