Commit Graph

135 Commits

Author SHA1 Message Date
Jan Nicklas 7e1af7b89c Add `__entry` and `__entryPath` to the global template variables 2016-09-09 15:05:38 +02:00
Michał Gołębiowski d0105fd7a7 Don't treat templateContent set to an empty string as not specified
Fix #355
2016-07-06 13:30:54 +02:00
Jan Nicklas 8fbbf69e50 Update dependencies 2016-07-02 12:51:07 +02:00
Jan Nicklas 86badc3d6e Add documentation for `html-webpack-plugin-alter-asset-tags` 2016-06-10 14:11:01 +02:00
Jan Nicklas c43bb4359f Add 'html-webpack-plugin-alter-asset-tags' 2016-06-10 08:17:41 +02:00
Jan Nicklas c229fcbab2 Add html-webpack-plugin-alter-chunks event 2016-05-30 11:59:17 +02:00
Patrick Burtchaell b718dc1c2c Add type attribute to script element
* Update index.js to add type attribute
* Update tests
* Build examples to update HTML
* Update CHANGELOG
2016-05-13 13:18:58 +02:00
Thomas Grainger 05d6694743 ∃ ∀ hot-update.js for isHotUpdateCompilation 2016-05-13 11:46:15 +02:00
Jan Nicklas 10058066d7 Merge pull request #281 from dtinth/patch-1
Don’t emit the html for hot-update compilation.
2016-04-30 19:53:49 +02:00
Jan Nicklas bfed3a29cc Add support for dynamic filenames 2016-04-18 13:00:48 +02:00
Jan Nicklas c0b730f25d Support hashes in filenames 2016-04-18 13:00:48 +02:00
Thai Pangsakulyanont 25fd764e16 Don’t emit the html for hot-update compilation.
webpack-dev-server@2.0.0-beta seems to be emitting hot update bundles separately from the full bundle. This makes HtmlWebpackPlugin mistake it for the real bundle, and generates a HTML file that looks like this:

```html
<script src="0.8f9c33574d86dd9eab0d.hot-update.js"></scriptt>
```

This commit uses quite a hack to check if the emitted bundle is a hot-update bundle, and skip emitting `index.html` file.
2016-04-02 16:47:06 +07:00
Jan Nicklas f616f2e22f Add inlining 2016-03-23 10:07:26 +01:00
Jan Nicklas a04434a225 Add unit tests for absolute file names 2016-03-23 09:20:34 +01:00
Evan You e4e9555209 support absolute filenames 2016-03-23 03:08:46 -04:00
Jan Nicklas 67ca550b99 Merge pull request #249 from sandeep45/master
build public path with correct hash value
2016-03-17 07:04:33 +01:00
Koen Punt bf5901e5c0 Add xhtml option to make link tags self-closing 2016-03-15 12:37:18 +01:00
Sandeep Arneja 419c2e6121 build public path with correct hash value 2016-03-09 17:45:42 -05:00
Michael Wolfenden 3005cec0f9 Add additional compilation property to the templateParam object 2016-03-02 13:28:26 +10:00
Simen Bekkhus 3897896265 Add before-html-generation event
This allows you to add assets to the html when not using
injection
2016-02-27 18:28:41 +01:00
Ma Cheng 0b4d7383ea Add chunk hash to `assets.chunks`
Add chunk hash to `assets.chunks` so can use it in template.
For some version control requirements, chunk hash may be more useful than compilation hash.
For example, if there are two chunks in page, but only one of them is changed, chunk hash is more cache-friendly.
2016-02-23 19:09:18 +08:00
Jan Nicklas 713643f84f v2.9.0 Fix favicon path (#185 #208 #215) 2016-02-17 13:17:23 +01:00
Jiri Kolarik b65c39c2f1 fix favicon location 2016-02-17 13:14:31 +01:00
Jan Nicklas 63e4ad6fc7 Support relative urls on windows (#205) 2016-02-16 08:05:15 +01:00
Jan Nicklas 99a8d7e4fd v2.8.1: Improve caching - fixes #204 2016-02-03 18:03:22 +01:00
Jan Nicklas 3f38901758 v2.8.0: Add chunk sort mode dependency 2016-02-03 18:00:27 +01:00
Christian Ruehl 36c762a834 ChunkSorter now implements all different strategies for sorting chunks available through chunksSortMode parameter. HtmlPlugin rewritten to use extended ChunkSorter. 2016-01-26 20:28:02 +01:00
Christian Rühl 3fedf6ac33 Implemented new chunk sorting mode 'dependency', which attempts to order chunks based on their relation within the dependency tree as devised by Webpack.
Added unit test for new sorting mode.

Fixed a few typos in other unit tests...sorry, couldn't resist ;-)
2016-01-25 15:13:19 +01:00
Jan Nicklas 70df65d9e5 Add support for require in js templates 2016-01-24 19:07:09 +01:00
Jan Nicklas 8eb8c86be4 Fix relative windows path 2016-01-20 16:51:07 +01:00
Jan Nicklas bf48112fa9 Use semistandard code style 2016-01-20 16:50:16 +01:00
Jan Nicklas d5c4e08457 Minor refactoring because of #179
Release 2.6.5
2016-01-19 14:52:25 +01:00
Jan Nicklas e566dac40d Fix context 2016-01-18 14:47:54 +01:00
Jan Nicklas df2e4728ab Fix default template name 2016-01-18 14:47:26 +01:00
Jan Nicklas 70259ea4b9 Invalidate cache on error 2016-01-12 09:30:32 +01:00
Jan Nicklas 1622c7d2e2 Move compiler to its own file
Improve error messages
Fix global HTML_WEBPACK_PLUGIN variable
2016-01-11 22:00:47 +01:00
Jan Nicklas 62d7cfb36b Fixes "No source available" 2016-01-11 16:08:16 +01:00
Jan Nicklas 7e4f83b26c Fixes #130 2016-01-11 11:41:11 +01:00
anjianshi ca50483385 fix comment 2016-01-09 10:10:04 +08:00
Jan Nicklas be966e70e0 Don't recompile if the assets didn't change 2016-01-07 19:19:04 +01:00
Jan Nicklas b4363a8575 Add events `html-webpack-plugin-before-html-processing`, `html-webpack-plugin-after-html-processing`, `html-webpack-plugin-after-emit` 2016-01-07 11:14:23 +01:00
Jan Nicklas 68428b583f #135 Inject css and js even if the html file is incomplete 2016-01-07 10:20:52 +01:00
Jan Nicklas 4cfef8a12c Improve caching 2016-01-07 09:58:14 +01:00
Jan Nicklas ec36061b03 Allow to disable sorting or pass a custom sort function 2015-11-23 12:04:42 +01:00
Jan Nicklas 5305da7b15 Port "Don't insert chunks that is not 'initial'" 2015-11-23 11:48:28 +01:00
Jan Nicklas 6f522b1998 Beta release 2.0.4 2015-10-08 21:46:39 +02:00
Arthur Stolyar 5db310fa02 Eliminate redundant try..catch 2015-10-04 17:39:02 +03:00
Arthur Stolyar a34a2b0e24 Fix minify option 2015-10-04 16:03:42 +03:00
Kees Kluskens a4c18b8c30 Remove url formatting in publicPath. 2015-09-29 21:35:09 +02:00
Kees Kluskens 3f55437bfb Another try at fixing the public path. 2015-09-28 23:48:54 +02:00