| | |
| | | import createVitePlugins from './vite/plugins' |
| | | import postCssPxToRem from 'postcss-pxtorem' |
| | | import { fileURLToPath, URL } from 'node:url'; |
| | | import basic from '@vitejs/plugin-basic-ssl' |
| | | // https://vitejs.dev/config/ |
| | | export default ({ mode, command }) => { |
| | | const env = loadEnv(mode, fileURLToPath(new URL("./env", import.meta.url))) |
| | |
| | | __INTLIFY_PROD_DEVTOOLS__: false, |
| | | }, |
| | | server: { |
| | | https: true, |
| | | port: 5174, |
| | | // host: '192.168.1.178', |
| | | proxy: { |
| | |
| | | ] |
| | | } |
| | | }, |
| | | plugins: [...createVitePlugins(env, command === 'build'), basic()], |
| | | plugins: createVitePlugins(env, command === 'build'), |
| | | build: buildConfig, |
| | | optimizeDeps: { |
| | | esbuildOptions: { |