Commit Graph

101 Commits

Author SHA1 Message Date
skiny2015 6f15d185da Add manual sort mode 2017-07-03 17:10:10 +02:00
Anchen bd043db35d Change headReg and bodyReg to allow spaces (#709)
* change headReg and bodyReg to allow spaces

* change regex to only allow space before closing tag
2017-06-29 09:08:52 +02:00
Rabbit 9665c63362 Add support for webpack 3(#707) 2017-06-24 23:29:56 +02:00
Thomas Sileghem 9b272cfb2b make test passes for webpack@1 and webapck@2 (#642)
* test(ci): start testing using webpack@2

* test(examples): update examples output files

* chore(travis): remove deprecaded node versions
2017-05-10 13:44:44 +02:00
Mike Evans 2d5c42ff18 chunks passed to alter-assets event (#574) 2017-01-29 15:07:05 +01:00
Jan Nicklas 2f4c88355c Fix unit tests for node 0.12 2017-01-04 08:40:48 +01:00
Jan Nicklas ecc0784af5 Fix unit tests for node 0.12 2017-01-04 08:38:08 +01:00
Mike Evans d22c23066a Allows events to add no-value attributes 2017-01-03 22:22:30 +01:00
Andrea Ascari bac1cd4469 Hide event deprecated warning of 'applyPluginsAsyncWaterfall' for html-webpack-plugin-after-emit and improve the warning message. (#478) 2016-10-31 08:52:31 +01:00
Andrea Ascari 4e29b022b8 Made before and after "html-processing" events use callback value (#442)
* Used returned value from applyPluginsAsyncWaterfall promise instead of referred object.
* Removed the possibility to alter 'html' and 'assets' in 'html-webpack-plugin-alter-asset-tags'.
* Added warning for non returned result from 'html-webpack-plugin-after-html-processing' and fixed tests.
2016-10-12 14:23:13 +02:00
christoph peter 9757d3df30 replace [hash] in publicPath of favicon (#441) 2016-09-26 12:29:30 +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 c54273563a Exclude chunks works now even if combined with dependency sort 2016-06-09 23:04:19 +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
Jan Nicklas c6f59019b3 Use travis matrix 2016-05-02 14:27:16 +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
Jan Nicklas def0703e71 Add inline tests for webpack 2 2016-03-23 11:13:38 +01:00
Jan Nicklas 831cbdecb8 Ensure that all tests pass for webpack2
Use sort mode "dependency" as default for webpack2
2016-03-23 11:06:11 +01:00
Jan Nicklas 935eefb291 Move web pack 1 example results into a subfolder 2016-03-23 11:06:11 +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 4114403df2 Count built files 2016-03-21 00:10:43 +01:00
Jan Nicklas 890353b6e4 Add caching tests 2016-03-20 15:34:59 +01: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
Sandeep Arneja eb01c774f2 Added a unit test to ensure that hashes are resolved correctly when used as the directory name holding the bundle file 2016-03-16 12:20:08 -04:00
Koen Punt f8abc156b5 Add xhtml option to readme and add tests 2016-03-15 13:51:41 +01:00
Michael Wolfenden 3005cec0f9 Add additional compilation property to the templateParam object 2016-03-02 13:28:26 +10:00
Jan Nicklas f707c98d32 Merge pull request #240 from SimenB/event-before-function-invocation
Add before-html-generation event
2016-02-29 18:51:16 +01:00
Simen Bekkhus 75175a6297 Upgrade jasmine to 2 2016-02-28 09:30:26 +01: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
mc-zone 313a83115a add test 2016-02-26 20:57:49 +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 453975ee0f Improve sorting tests 2016-02-16 07:56:36 +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 bf48112fa9 Use semistandard code style 2016-01-20 16:50:16 +01:00
Jan Nicklas 9e7cc462ba Add example results and add them to the test suite 2016-01-18 14:48:39 +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 3f16e3491a Fix test for compiling multiple files 2016-01-11 12:20:46 +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 2b726e8031 Add unit tests for chunk sort 2015-11-23 14:09:59 +01:00
Jan Nicklas e813b0576a Work around css-loader issue during testing 2015-11-23 13:38:50 +01:00
Jan Nicklas e2863a9b72 Add missing use strict statements 2015-11-23 12:11:35 +01:00