@aofl/cli-lib
Advanced tools
Comparing version 4.0.0-alpha.11 to 4.0.0-alpha.12
@@ -18,8 +18,8 @@ const jsStringEscape = require('js-string-escape'); | ||
for (const key in compilation.chunks) { | ||
if (!compilation.chunks.hasOwnProperty(key)) continue; | ||
const chunk = compilation.chunks[key]; | ||
compilation.chunks.forEach((chunk) => { | ||
if (typeof chunk.name === 'string' && chunk.name.length > 0) { | ||
const url = assets.publicPath + chunk.files[0]; | ||
const source = compilation.assets[chunk.files[0].replace(/\?.*/, '')].source(); | ||
const filesIter = chunk.files.values(); | ||
const file = filesIter.next().value; | ||
const url = assets.publicPath + file; | ||
const source = compilation.assets[file.replace(/\?.*/, '')].source(); | ||
const sourceStr = jsStringEscape(source); | ||
@@ -32,3 +32,3 @@ assetsMap[chunk.name] = { | ||
} | ||
} | ||
}); | ||
@@ -35,0 +35,0 @@ return { |
{ | ||
"name": "@aofl/cli-lib", | ||
"version": "4.0.0-alpha.11", | ||
"version": "4.0.0-alpha.12", | ||
"description": "Shared library for cli and various webpack plugins.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62235