Uh oh!
There was an error while loading. Please reload this page.
Add support for complex config options - #46
Conversation
jhnns
commented
Feb 15, 2016
Looks good, thank you 👍 I would bet that I've seen this |
Add support for complex config options
jhnns
commented
Feb 15, 2016
Shipped with |
lukasgeiter
commented
Feb 15, 2016
Cool! 👍 |
jhnns
commented
Feb 15, 2016
We should probably unify that: |
lukasgeiter
commented
Feb 15, 2016
Good idea 👍 |
luyixin
commented
Nov 10, 2016
Cool |
it's not ok, For loader options: webpack 2 no longer allows custom properties in configuration. |
BertieGo
commented
Nov 7, 2018
Hi,now I got a problem,I have code like this: and I want to insert var into progress.html so I can decide some elements in progress.html show/hide , |
wdapp
commented
May 20, 2019
你好,我想问一下,如果我的html模板增加了 script标签,如何配置html-loader可以让script标签内的js代码不被字符串化,可以被解析成javascript代码呢 |
This PR add's a second method for passing config parameters to loader. Specifying them in the webpack configuration. This is necessary in order to be able to pass more complex arguments to the html minifier. In my case I wanted to specify
ignoreCustomFragments, which is an array containing regexes. This is currently not possible within a simple query string.If this gets merged, developers will be able to specify the loader options like this:
The property name can be configured via query, it defaults to
htmlLoader