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

vue's development build is used for production #1437

Closed
QuentinRoy opened this issue Mar 15, 2024 · 0 comments · Fixed by #1466
Closed

vue's development build is used for production #1437

QuentinRoy opened this issue Mar 15, 2024 · 0 comments · Fixed by #1466

Comments

@QuentinRoy
Copy link
Contributor

Describe the bug

When serving the built files, vue seems to warn us that we are still using the dev version.

You are running a development build of Vue.
Make sure to use the production build (*.prod.js) when deploying for production.

And indeed, vue's dev tools does work. I have tried to manually set node's env to production, but it made no difference.

To Reproduce
Steps to reproduce the behavior:

pnpm create slidev test
cd test
pnpm build
pnpm dlx serve dist

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Arc
  • Slidev version: 0.48.2
@QuentinRoy QuentinRoy changed the title Running the vue's dev version in production? Running vue's dev build in production? Mar 15, 2024
@QuentinRoy QuentinRoy changed the title Running vue's dev build in production? vue's development build is used for production Mar 15, 2024
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

Successfully merging a pull request may close this issue.

1 participant