Replies: 1 comment 8 replies
-
For example: build: { sourcemap: process.env.VITE_RUBY_AUTO_BUILD === "true" } |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In actual production, I seem to be getting sourceMaps out of vite with
rake assets:precompile
But when using
autoBuild
feature in development, I don't seem to be getting sourceMaps. This is a bit inconvenient when in dev or test using autoBuild, the point when I most need sourceMaps actually!Is there any way to get sourceMaps when under
autoBuild
? The documentation suggests that Source Maps should already be on by default, and has instructions for turning them off...Ah, but wait, adding
build: { sourcemap: true }
does seem to have gotten me source maps inautoBuild
mode!If I wanted to, how would I enable them in dev autoBuild but disable them in production?
Beta Was this translation helpful? Give feedback.
All reactions