html-webpack-plugin 2.21.1 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +11 -1
- package/index.js +2 -2
- package/package.json +15 -7
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
HTML Webpack Plugin
|
|
2
2
|
===================
|
|
3
|
-
[](http://badge.fury.io/js/html-webpack-plugin) [](https://david-dm.org/ampedandwired/html-webpack-plugin) [](https://travis-ci.org/ampedandwired/html-webpack-plugin) [](https://ci.appveyor.com/project/jantimon/html-webpack-plugin) [](https://github.com/Flet/semistandard) [](https://www.bithound.io/github/ampedandwired/html-webpack-plugin/master/dependencies/npm)
|
|
3
|
+
[](http://badge.fury.io/js/html-webpack-plugin) [](https://david-dm.org/ampedandwired/html-webpack-plugin) [](https://travis-ci.org/ampedandwired/html-webpack-plugin) [](https://ci.appveyor.com/project/jantimon/html-webpack-plugin) [](https://github.com/Flet/semistandard) [](https://www.bithound.io/github/ampedandwired/html-webpack-plugin/master/dependencies/npm) []()
|
|
4
4
|
|
|
5
5
|
[](https://nodei.co/npm/html-webpack-plugin/)
|
|
6
6
|
|
|
@@ -296,3 +296,13 @@ plugins: [
|
|
|
296
296
|
```
|
|
297
297
|
|
|
298
298
|
Note that the callback must be passed the htmlPluginData in order to pass this onto any other plugins listening on the same 'html-webpack-plugin-before-html-processing' event.
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
# Contribution
|
|
302
|
+
|
|
303
|
+
You're free to contribute to this project by submitting [issues](https://github.com/ampedandwired/html-webpack-plugin/issues) and/or [pull requests](https://github.com/ampedandwired/html-webpack-plugin/pulls). This project is test-driven, so keep in mind that every change and new feature should be covered by tests.
|
|
304
|
+
This project uses the [semistandard code style](https://github.com/Flet/semistandard).
|
|
305
|
+
|
|
306
|
+
# License
|
|
307
|
+
|
|
308
|
+
This project is licensed under [MIT](https://github.com/ampedandwired/html-webpack-plugin/blob/master/LICENSE).
|
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ Promise.promisifyAll(fs);
|
|
|
12
12
|
function HtmlWebpackPlugin (options) {
|
|
13
13
|
// Default options
|
|
14
14
|
this.options = _.extend({
|
|
15
|
-
template: __dirname
|
|
15
|
+
template: path.join(__dirname, 'default_index.ejs'),
|
|
16
16
|
filename: 'index.html',
|
|
17
17
|
hash: false,
|
|
18
18
|
inject: true,
|
|
@@ -592,7 +592,7 @@ HtmlWebpackPlugin.prototype.getFullTemplatePath = function (template, context) {
|
|
|
592
592
|
}
|
|
593
593
|
// Resolve template path
|
|
594
594
|
return template.replace(
|
|
595
|
-
/(
|
|
595
|
+
/([!])([^\/\\][^!\?]+|[^\/\\!?])($|\?.+$)/,
|
|
596
596
|
function (match, prefix, filepath, postfix) {
|
|
597
597
|
return prefix + path.resolve(filepath) + postfix;
|
|
598
598
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-webpack-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "Simplifies creation of HTML files to serve your webpack bundles",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -30,31 +30,39 @@
|
|
|
30
30
|
"url": "https://github.com/ampedandwired/html-webpack-plugin/issues"
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/ampedandwired/html-webpack-plugin",
|
|
33
|
+
"semistandard": {
|
|
34
|
+
"ignore": [
|
|
35
|
+
"examples/*/dist/**/*.*"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
33
38
|
"devDependencies": {
|
|
34
39
|
"appcache-webpack-plugin": "^1.2.1",
|
|
35
40
|
"css-loader": "^0.23.1",
|
|
36
41
|
"dir-compare": "1.0.1",
|
|
37
42
|
"es6-promise": "^3.2.1",
|
|
38
43
|
"extract-text-webpack-plugin": "^1.0.1",
|
|
39
|
-
"file-loader": "^0.
|
|
44
|
+
"file-loader": "^0.9.0",
|
|
40
45
|
"html-loader": "^0.4.3",
|
|
41
46
|
"jade": "^1.11.0",
|
|
42
47
|
"jade-loader": "^0.8.0",
|
|
43
48
|
"jasmine": "^2.4.1",
|
|
44
49
|
"rimraf": "^2.5.2",
|
|
45
|
-
"semistandard": "^
|
|
50
|
+
"semistandard": "^8.0.0",
|
|
46
51
|
"style-loader": "^0.13.1",
|
|
47
52
|
"underscore-template-loader": "^0.7.3",
|
|
48
53
|
"url-loader": "^0.5.7",
|
|
49
|
-
"webpack": "^1.13.
|
|
54
|
+
"webpack": "^1.13.1",
|
|
50
55
|
"webpack-recompilation-simulator": "^1.3.0"
|
|
51
56
|
},
|
|
52
57
|
"dependencies": {
|
|
53
|
-
"bluebird": "^3.
|
|
54
|
-
"html-minifier": "^2.1.
|
|
58
|
+
"bluebird": "^3.4.1",
|
|
59
|
+
"html-minifier": "^2.1.6",
|
|
55
60
|
"loader-utils": "^0.2.15",
|
|
56
|
-
"lodash": "^4.
|
|
61
|
+
"lodash": "^4.13.1",
|
|
57
62
|
"pretty-error": "^2.0.0",
|
|
58
63
|
"toposort": "^1.0.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"webpack": "*"
|
|
59
67
|
}
|
|
60
68
|
}
|