-
-
Notifications
You must be signed in to change notification settings - Fork 205
How to use <base href> and src="./foo"? #85
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
Comments
The statement is entirely correct. The I am not entirely sure what would be the expected behavior here since What could be done is modifying the source against the specified I would love to have more eyes on this issue before making any changes. |
I guess it would be nice/enough to have some kind of When using the Example: What do you think about this? |
With base being definable outside of DOM I can agree wholeheartedly. But maybe the better feature would be implementing support for https://webpack.github.io/docs/configuration.html#resolve. IMHO it would be more in the Webpack spirit. And would solve the issue you are having. |
I'm quite new to Webpack and I don't know how Basically it really doesn't matter to me if it's solved using |
Using Webpack 1.13.2 , html-loader 0.4.3 on OSX.
I'm migrating an app to Webpack and now need to use the html-loader with ngtemplate-loader.
The
index.html
has set<base href="/foo/" />
And all our internal links and image sources start with
./
.For example:
/folder/partial.html
contains<img src="./bar/baz.png">
Though the browser will read the image from
/foo/bar/baz.png
I guess that html-loader doesn't know about the
base href
and now tries to search for the image in/folder/bar/baz.png
.Is it somehow possible to tell html-loader about the
base href
?The text was updated successfully, but these errors were encountered: