webpack-manifest-resource-plugin
Advanced tools
Comparing version 4.2.2 to 4.2.3
4.2.2 / 2018-03-29 | ||
================== | ||
* fix: manifest deps key missing .js | ||
4.0.0 / 2018-03-07 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -88,13 +88,13 @@ var path = require('path'); | ||
}); | ||
commonsChunk.forEach(dll => { | ||
if (typeof dll === 'object') { | ||
if (!isCommonsChunk && this.isMatch(dll.include, pageName, true) && !this.isMatch(dll.exclude, pageName, false)) { | ||
const jsKey = `${dll.name}.js`; | ||
const cssKey = `${dll.name}.css`; | ||
manifest[jsKey] && dllScript.push(manifest[jsKey]); | ||
manifest[cssKey] && dllCss.push(manifest[cssKey]); | ||
} | ||
} | ||
}); | ||
if(!isCommonsChunk) { | ||
commonsChunk.forEach(dll => { | ||
if (typeof dll === 'object') { | ||
if (this.isMatch(dll.include, pageName, true) && !this.isMatch(dll.exclude, pageName, false)) { | ||
const jsKey = `${dll.name}.js`; | ||
const cssKey = `${dll.name}.css`; | ||
manifest[jsKey] && dllScript.push(manifest[jsKey]); | ||
manifest[cssKey] && dllCss.push(manifest[cssKey]); | ||
} | ||
} | ||
}); | ||
const js = dllScript.concat(commonChunkScript).concat(manifest[`${pageName}.js`] || []); | ||
@@ -101,0 +101,0 @@ const css = dllCss.concat(commonChunkCss).concat(manifest[`${pageName}.css`] || []); |
{ | ||
"name": "webpack-manifest-resource-plugin", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "webpack manifest resource dependencies plugin", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
14592