html-webpack-plugin
Advanced tools
Comparing version 4.2.2 to 4.3.0
@@ -5,2 +5,11 @@ # Change Log | ||
# [4.3.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.2...v4.3.0) (2020-04-30) | ||
### Features | ||
* Allow to use console.log inside templates ([c3f2fdc](https://github.com/jantimon/html-webpack-plugin/commit/c3f2fdc)) | ||
## [4.2.2](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.1...v4.2.2) (2020-04-30) | ||
@@ -7,0 +16,0 @@ |
@@ -309,3 +309,3 @@ // @ts-check | ||
const template = this.options.template.replace(/^.+!/, '').replace(/\?.+$/, ''); | ||
const vmContext = vm.createContext(_.extend({ HTML_WEBPACK_PLUGIN: true, require: require }, global)); | ||
const vmContext = vm.createContext(_.extend({ HTML_WEBPACK_PLUGIN: true, require: require, console: console }, global)); | ||
const vmScript = new vm.Script(source, { filename: template }); | ||
@@ -312,0 +312,0 @@ // Evaluate code and cast to string |
{ | ||
"name": "html-webpack-plugin", | ||
"version": "4.2.2", | ||
"version": "4.3.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Simplifies creation of HTML files to serve your webpack bundles", |
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
140233