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 CHANGED
@@ -1,6 +1,10 @@
1
1
  Change History
2
2
  ==============
3
3
 
4
+ v2.22.0
5
+ ---
6
+ * Update dependencies
7
+
4
8
  v2.21.1
5
9
  ---
6
10
  * Better error handling (#354)
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  HTML Webpack Plugin
2
2
  ===================
3
- [![npm version](https://badge.fury.io/js/html-webpack-plugin.svg)](http://badge.fury.io/js/html-webpack-plugin) [![Dependency Status](https://david-dm.org/ampedandwired/html-webpack-plugin.svg)](https://david-dm.org/ampedandwired/html-webpack-plugin) [![Build status](https://travis-ci.org/ampedandwired/html-webpack-plugin.svg)](https://travis-ci.org/ampedandwired/html-webpack-plugin) [![Windows build status](https://ci.appveyor.com/api/projects/status/github/ampedandwired/html-webpack-plugin?svg=true&branch=master)](https://ci.appveyor.com/project/jantimon/html-webpack-plugin) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard) [![bitHound Dependencies](https://www.bithound.io/github/ampedandwired/html-webpack-plugin/badges/dependencies.svg)](https://www.bithound.io/github/ampedandwired/html-webpack-plugin/master/dependencies/npm)
3
+ [![npm version](https://badge.fury.io/js/html-webpack-plugin.svg)](http://badge.fury.io/js/html-webpack-plugin) [![Dependency Status](https://david-dm.org/ampedandwired/html-webpack-plugin.svg)](https://david-dm.org/ampedandwired/html-webpack-plugin) [![Build status](https://travis-ci.org/ampedandwired/html-webpack-plugin.svg)](https://travis-ci.org/ampedandwired/html-webpack-plugin) [![Windows build status](https://ci.appveyor.com/api/projects/status/github/ampedandwired/html-webpack-plugin?svg=true&branch=master)](https://ci.appveyor.com/project/jantimon/html-webpack-plugin) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard) [![bitHound Dependencies](https://www.bithound.io/github/ampedandwired/html-webpack-plugin/badges/dependencies.svg)](https://www.bithound.io/github/ampedandwired/html-webpack-plugin/master/dependencies/npm) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)]()
4
4
 
5
5
  [![NPM](https://nodei.co/npm/html-webpack-plugin.png?downloads=true&downloadRank=true&stars=true)](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 + '/default_index.ejs',
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.21.1",
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.8.5",
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": "^7.0.5",
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.0",
54
+ "webpack": "^1.13.1",
50
55
  "webpack-recompilation-simulator": "^1.3.0"
51
56
  },
52
57
  "dependencies": {
53
- "bluebird": "^3.3.5",
54
- "html-minifier": "^2.1.3",
58
+ "bluebird": "^3.4.1",
59
+ "html-minifier": "^2.1.6",
55
60
  "loader-utils": "^0.2.15",
56
- "lodash": "^4.12.0",
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
  }