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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
--no-source-maps
doesn't work if source maps are cached
#2692
Comments
@DeMoorJasper This is the very last issue I have with the CSS source maps PR, I also proposed two possible solutions, but I'm not sure which is better: #2489 (comment) |
@mischnic not sure if always creating a sourcemaps on asset lvl is a good idea, it will impact performance on builds and it鈥檚 unlikely someone will change between no sourcemaps and sourcemaps a lot. Sent with GitHawk |
This would mean: invalidate the cache based on the flag because assets are cached
A contradiction? |
@mischnic yeah just realised that switching from no sourcemaps to sourcemaps would have unexpected results of sourcemaps flag is not part of cache. Thinking about that it would probably need to invalidate I guess, depends on how much impact sourcemaps would have on performance. If it has little to no impact it might be worth it to always generate sourcemaps and not package them based on flag Sent with GitHawk |
Opting for invalidation (to keep these values). |
@mischnic @devongovett Can you guys expand on why this issue was closed? It doesn't make sense to have an option to not build source maps and then proceed to include them anyways. In my case, I want source maps to be generated for development. But I don't want them to be generated for my build that goes out to production as they essentially double my app size. I don't see why I should have to clear the cache every time I want to make my production build. Am I just thinking about this the wrong way? |
馃悰 bug report
Continuation of #2079
by @mrcoles
馃帥 Configuration (.babelrc, package.json, cli command)
馃 Expected Behavior
should not package sourcemaps
馃槸 Current Behavior
Packages cached sourcemaps
馃拋 Possible Solution
check if sourcemaps should be made in packaging
馃實 Your Environment
The text was updated successfully, but these errors were encountered: