-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for complex config options #46
Add support for complex config options #46
Conversation
Looks good, thank you 👍 I would bet that I've seen this |
Add support for complex config options
Shipped with |
Cool! 👍 |
We should probably unify that: |
Good idea 👍 |
Cool |
it's not ok, For loader options: webpack 2 no longer allows custom properties in configuration.
|
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 , |
你好,我想问一下,如果我的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