Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Extracted CSS sourcemaps don't work #421

Closed
Rich-Harris opened this issue Sep 6, 2018 · 3 comments · Fixed by #768
Closed

Extracted CSS sourcemaps don't work #421

Rich-Harris opened this issue Sep 6, 2018 · 3 comments · Fixed by #768

Comments

@Rich-Harris
Copy link
Member

They work perfectly when appended as inline data URLs but not when they're separate .map files. Probably just need to tweak the path

@rof20004
Copy link

rof20004 commented Jun 15, 2019

@Rich-Harris

How can I remove map files for production? I did this on client and server configurations but not working:

output: { ...config.client.output(), sourcemap: dev },

@laurentpayot
Copy link

@rof20004 Personally I just remove them at the end of my npm build script, something like:

rm build/client/*.css.map && sed -i '/^[/][*] sourceMappingURL=/d' build/client/*.css

@rof20004
Copy link

rof20004 commented Jun 17, 2019

@laurentpayot Thanks, I did this after build or export.

find __sapper__/ -name *.map -type f -delete

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 a pull request may close this issue.

3 participants