Skip to content

Commit 62215a8

Browse files
committed
change a few text
1 parent c1a12e9 commit 62215a8

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,4 @@ If you still don't understand README, you can checkout examples in specWepback w
391391
- v1.1.3 fix bug for using hot update
392392
- v1.2.0 support using loader and image in html
393393
- v1.2.2 fix bug from uglify js which remove quotes
394+
- v1.2.3 just chanage a few text

README_ZH.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,4 @@ plugins: [
391391
- v1.1.3 修复使用热替换时的bug
392392
- v1.2.0 支持对html使用loader以及支持image插入到html中
393393
- v1.2.2 修复uglify js引入的,去掉引号无法匹配问题
394+
- v1.2.3 改了点小文案而已

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ HtmlResWebpackPlugin.prototype.evaluateCompilationResult = function(compilation,
188188
// To extract the result during the evaluation this part has to be removed.
189189
source = source.replace('var HTML_RES_WEBPACK_PLUGIN_RESULT =', '');
190190
var template = this.options.templateLoaderName.replace(/^.+!/, '').replace(/\?.+$/, '');
191-
var vmContext = vm.createContext(_.extend({HTML_WEBPACK_PLUGIN: true, require: require}, global));
191+
var vmContext = vm.createContext(_.extend({HTML_RES_WEBPACK_PLUGIN: true, require: require}, global));
192192
var vmScript = new vm.Script(source, {filename: template});
193193
// console.log(vmScript);
194194
// Evaluate code and cast to string

libs/compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ module.exports.compileTemplate = function compileTemplate(template, context, out
9494
};
9595

9696
/**
97-
* Returns the child compiler name e.g. 'html-webpack-plugin for "index.html"'
97+
* Returns the child compiler name e.g. 'html-res-webpack-plugin for "index.html"'
9898
*/
9999
function getCompilerName (context, filename) {
100100
var absolutePath = path.resolve(context, filename);
101101
var relativePath = path.relative(context, absolutePath);
102-
return 'html-webpack-plugin for "' + (absolutePath.length < relativePath.length ? absolutePath : relativePath) + '"';
102+
return 'html-res-webpack-plugin for "' + (absolutePath.length < relativePath.length ? absolutePath : relativePath) + '"';
103103
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-res-webpack-plugin",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "html generation and resource inline or md5 for webpack",
55
"keywords": [
66
"front-end",

0 commit comments

Comments
 (0)