Open
Conversation
7ac0c02 to
02096df
Compare
…urcemaps only available in dev mode The build.sourcemap option generates sourcemaps for JavaScript but not for CSS. This is a known Vite limitation that doesn't impact how Vite is designed to work, but it slightly affects our current workflow—the Vite dev server is required to use CSS sourcemaps for debugging styles. When changes are ready for deploy, use npm run build to compile and commit the assets.
Add the `vite-plugin-css-sourcemap plugin` to generate CSS sourcemaps during production builds and include it in compiled assets. Requires downgrading to Vite 6 and laravel-vite-plugin 1.x due to plugin compatibility constraints. With this change, `npm run build` generates both JS and CSS sourcemaps, eliminating the need to run the dev server for CSS debugging.
Contributor
Author
|
@wunc Vite serves assets from a local dev server during development and only compiles them for production. CSS sourcemaps are a known limitation—the
|
Collaborator
|
@betsyecastro thanks for the analysis. It's very helpful. Seeing this, I think I'd rather upgrade to the newer version (7) right now, and we'll adjust how we work in dev. |
This reverts commit f7a6173.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.