We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b21bcf2 commit 76ec143Copy full SHA for 76ec143
vite.config.js
@@ -16,12 +16,12 @@ const getPackageNameCamelCase = () => {
16
let format;
17
18
// https://vitejs.dev/config/
19
-export default defineConfig(({ command, mode }) => ({
+export default defineConfig(({ command }) => ({
20
plugins: [vue(), devSSR()],
21
publicDir: command === 'build' ? false : 'public',
22
define: {
23
__DEV__: `${
24
- mode.production
+ command === 'build'
25
? `process.env.NODE_ENV === 'development'`
26
: 'import.meta.env.DEV'
27
}`,
0 commit comments