Skip to content
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

Add pathPrefix option #2

Merged
merged 1 commit into from
Jan 4, 2018
Merged

Add pathPrefix option #2

merged 1 commit into from
Jan 4, 2018

Conversation

jamietre
Copy link
Contributor

@jamietre jamietre commented Jan 4, 2018

This option allows appending a prefix to the paths generated by css-visor for the assets its creates.

In our build configuration, the paths used at runtime to load assets may be different from the root paths within the source tree. For example, styles are always loaded from within a /styles/ route, which won't work by default with css-visor which always emits routes relative to the site source root folder name. This change allows aligning the output from css-visor to an arbitrary route at runtime.

@zikaari zikaari merged commit 2ef1640 into zikaari:master Jan 4, 2018
@zikaari
Copy link
Owner

zikaari commented Jan 4, 2018

Thanks!

Also do you (or your team) use any CLI tools like angular-cli or create-react-app which have no or pathetic support for CSS sourcemaps, or you guys use your own setup from scratch?

(The reason I'm asking this is because I'm trying hard to push this plugin to those CLI tools, for better sourcemap support, example facebook/create-react-app#3202 with support for others coming soon)

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