@studyportals/bob-manifest-generator
Advanced tools
Comparing version 3.0.0-beta.10 to 3.0.0-beta.11
{ | ||
"name": "@studyportals/bob-manifest-generator", | ||
"version": "3.0.0-beta.10", | ||
"version": "3.0.0-beta.11", | ||
"description": "A Webpack plugin that generates a manifest file for your microservice.", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -185,5 +185,9 @@ const path = require('path'); | ||
const fileName = chunk.files[0]; | ||
const js = assets[fileName].source(); | ||
const jsWithoutSourceMapReference = js.substring(0, js.indexOf('//# sourceMappingURL=')); | ||
this.manifest.html = `<script>${jsWithoutSourceMapReference}</script>`; | ||
let js = assets[fileName].source(); | ||
if(js.indexOf('//# sourceMappingURL=') !== -1){ | ||
js = js.substring(0, js.indexOf('//# sourceMappingURL=')); | ||
} | ||
this.manifest.html = `<script>${js}</script>`; | ||
} | ||
@@ -190,0 +194,0 @@ } |
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
16443
290