Skip to content

Use relative paths for emitted files #17

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

Merged
merged 1 commit into from
Jul 3, 2017
Merged

Use relative paths for emitted files #17

merged 1 commit into from
Jul 3, 2017

Conversation

timkendrick
Copy link
Contributor

Currently the typed-css-modules-loader emits absolute file paths for all the virtual emitted webpack files, such as the following:

/Users/tim/projects/foo/styles/index.css.d.ts

As well as leaking information about the host system into the generated source maps, this also means that the bundled webpack artifact (and therefore its hash etc) will vary according to which user ran the build process.

This PR ensures that emitted file paths are all generated relative to the current webpack context root, such as the following:

styles/index.css.d.ts

@olegstepura olegstepura merged commit f8bf98c into olegstepura:master Jul 3, 2017
olegstepura added a commit that referenced this pull request Jul 3, 2017
@olegstepura
Copy link
Owner

Merged and released v0.0.10

@timkendrick timkendrick deleted the patch-1 branch July 24, 2017 17:25
@timkendrick
Copy link
Contributor Author

Just seen this now. Thanks!

tgroutars pushed a commit to producthunt/typed-css-modules-loader that referenced this pull request May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants