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

Source maps use full path as filename #348

Closed
zspitzer opened this issue Aug 2, 2017 · 1 comment
Closed

Source maps use full path as filename #348

zspitzer opened this issue Aug 2, 2017 · 1 comment

Comments

@zspitzer
Copy link

zspitzer commented Aug 2, 2017

It's seems source map is including full paths rather than relative files

{"version":3,"sources":["W:\\test\\css\\index.css"],"names":[],"mappings":....

i'd expect to see

{"version":3,"sources":["index.css"],"names":[],"mappings":...

running csso via css-cli on win10

@lahmatiy
Copy link
Member

lahmatiy commented Aug 3, 2017

It's unclear relative to what location should be file - to working dir, to input or to output file? Absolute paths provide consistent and unambiguous behaviour, much useful for debug (minified file may be placed anywhere). Don't see the reason to change it.

Btw, CSSO itself uses the filename passed to minify() method via filename option. You can pass any value you're preferred. csso-cli have some internal behaviour to choose the file name for source map. So issue is related to csso-cli not to CSSO.

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

No branches or pull requests

3 participants
@lahmatiy @zspitzer and others