-
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Load favicon through html-loader. #428
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
Changes from 1 commit
9c21c40
50fce72
edef7d3
22b175d
f35f725
58232c5
38f668b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -143,6 +143,15 @@ module.exports = { | |
| limit: 10000, | ||
| name: 'static/media/[name].[ext]' | ||
| } | ||
| }, | ||
| // "html" loader is used to process template page (index.html) to resolve | ||
| // resources linked with <link href="./relative/path"> HTML tags. | ||
| { | ||
| test: /\.html/, | ||
| loader: 'html', | ||
| query: { | ||
| attrs: ['link:href'], | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be extended with other
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oooh nice. Can you think up any other common combinations?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't bother adding more at the moment but rather serve on per-request basis.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think |
||
| } | ||
| } | ||
| ] | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,7 @@ | |
| "filesize": "3.3.0", | ||
| "fs-extra": "0.30.0", | ||
| "gzip-size": "3.0.0", | ||
| "html-loader": "^0.4.3", | ||
|
||
| "html-webpack-plugin": "2.22.0", | ||
| "http-proxy-middleware": "0.17.0", | ||
| "jest": "14.1.0", | ||
|
|
||
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.
Should end with
$?