Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sernst/vite-mode-issue
Shows that vite build in development mode is not being fully recognized.
https://github.com/sernst/vite-mode-issue
Last synced: 6 days ago
JSON representation
Shows that vite build in development mode is not being fully recognized.
- Host: GitHub
- URL: https://github.com/sernst/vite-mode-issue
- Owner: sernst
- Created: 2023-05-17T14:12:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-27T12:11:52.000Z (over 1 year ago)
- Last Synced: 2024-11-14T13:39:11.679Z (2 months ago)
- Language: CSS
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite Mode Issue
This example is built on the
[Vanilla Vite Application](https://vitejs.dev/guide/#trying-vite-online)
from the quick start guide.This is a minimal example showing that Vite build with `--mode=developemnt` doesn't
seem to be correctly identifying as development. The `import.meta.env.DEV` is `false`
and `import.meta.env.PROD` is `true` when it should be the opposite. The
`import.meta.env.MODE` is correctly showing the value that was passed in the mode
argument.To run this example:
```shell
npm install
npm start
```This will run a vite build with `--mode=development` that can be opened from the created
dist folder. Watch is enabled so any changes to the source files will trigger a rebuild.