Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Use loaderUtils.stringifyRequest #6

Merged
merged 1 commit into from
May 17, 2017
Merged

Use loaderUtils.stringifyRequest #6

merged 1 commit into from
May 17, 2017

Conversation

Obi-Dann
Copy link
Contributor

Absolute path returned by require.resolve does not seem to be working in my windows environment. I propose wrapping it with loaderUtils.stringifyRequest - recommended way of dealing with absolute urls in webpack

Since webpack calculates the hash before module paths are translated into module ids, we must avoid absolute paths to ensure consistent hashes across different compilations.
https://github.com/webpack/loader-utils#stringifyrequest

Since webpack calculates the hash before module paths are translated into module ids, we must avoid absolute paths to ensure consistent hashes across different compilations.
@shepherdwind shepherdwind merged commit 67dc8cb into shepherdwind:master May 17, 2017
@shepherdwind
Copy link
Owner

Thanks for you contribution. version 1.1.1 published.

@Obi-Dann
Copy link
Contributor Author

That was amazingly fast, thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants