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

sourceMap sourceRoot information is missing #49

Closed
zsl99a opened this issue Sep 8, 2017 · 2 comments
Closed

sourceMap sourceRoot information is missing #49

zsl99a opened this issue Sep 8, 2017 · 2 comments

Comments

@zsl99a
Copy link

zsl99a commented Sep 8, 2017

Ideal result

{
  "version": 3,
  "sources": [
    "src/routes/admin/admin.css"
  ],
  "names": [],
  "mappings": "AAAA;EACE,YAAY;EACZ,aAAa;CACd;;AAED;EACE,eAAe;CAChB",
  "file": "bundle.css",
  "sourcesContent": [
    ".main {\n  width: 100%;\n  height: 100%;\n}\n\n.sider {\n  overflow: auto;\n}\n"
  ]
}

actual results

{
  "version": 3,
  "sources": [
    "admin.css"
  ],
  "names": [],
  "mappings": "AAAA;EACE,YAAY;EACZ,aAAa;CACd;;AAED;EACE,eAAe;CAChB",
  "file": "bundle.css",
  "sourcesContent": [
    ".main {\n  width: 100%;\n  height: 100%;\n}\n\n.sider {\n  overflow: auto;\n}\n"
  ]
}
@egoist
Copy link
Owner

egoist commented Jan 10, 2018

should be fixed in v1.0

@egoist egoist closed this as completed Jan 10, 2018
@willwillems
Copy link

willwillems commented Dec 11, 2019

Version 2.0.3 has this problem, src/test/main.css is instead generated as main.css.

Example:

{
  "version": 3,
  "sources": ["main.css"],
  "names": [],
  "mappings": "AAAA;EACE,UAAU;AACZ",
  "file": "main.css",
  "sourcesContent": ["body {\n  color: red;\n}"]
}

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

No branches or pull requests

3 participants