-
-
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
feat: add possibility to extend default minimize options #414
feat: add possibility to extend default minimize options #414
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #414 +/- ##
==========================================
+ Coverage 92.15% 92.16% +0.01%
==========================================
Files 7 7
Lines 586 587 +1
Branches 188 188
==========================================
+ Hits 540 541 +1
Misses 37 37
Partials 9 9
Continue to review full report at Codecov.
|
@@ -496,7 +496,7 @@ function isProductionMode(loaderContext) { | |||
return loaderContext.mode === "production" || !loaderContext.mode; | |||
} | |||
|
|||
const defaultMinimizerOptions = { | |||
export const defaultMinimizerOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's reexport it in index.js
, we should avoid using html-loader/dist/utils
, because structure can be changed, better to use require('html-loader').defaultMinimizerOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reexported + fixed docs
c1ba176
to
7e14f72
Compare
Can you accept CLA? |
Thanks |
This PR contains a:
Motivation / Use-Case
Closes #413