和蕙健康小程序后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
1.8 KiB

<<<<<<< HEAD
import { loadEnv } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
import path from 'path';
// import viteCompression from 'vite-plugin-compression';
import uniReadPagesV3Plugin from './sheep/router/utils/uni-read-pages-v3';
import mpliveMainfestPlugin from './sheep/libs/mplive-manifest-plugin';
// https://vitejs.dev/config/
export default (command, mode) => {
const env = loadEnv(mode, __dirname, 'SHOPRO_');
return {
envPrefix: "SHOPRO_",
plugins: [
uni(),
// viteCompression({
// verbose: false
// }),
uniReadPagesV3Plugin({
pagesJsonDir: path.resolve(__dirname, './pages.json'),
includes: ['path', 'aliasPath', 'name', 'meta'],
}),
mpliveMainfestPlugin(env.SHOPRO_MPLIVE_ON)
],
server: {
host: true,
// open: true,
port: env.SHOPRO_DEV_PORT,
hmr: {
overlay: true,
},
},
};
};
=======
import { loadEnv } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
import path from 'path';
// import viteCompression from 'vite-plugin-compression';
import uniReadPagesV3Plugin from './sheep/router/utils/uni-read-pages-v3';
import mpliveMainfestPlugin from './sheep/libs/mplive-manifest-plugin';
// https://vitejs.dev/config/
export default (command, mode) => {
const env = loadEnv(mode, __dirname, 'SHOPRO_');
return {
envPrefix: "SHOPRO_",
plugins: [
uni(),
// viteCompression({
// verbose: false
// }),
uniReadPagesV3Plugin({
pagesJsonDir: path.resolve(__dirname, './pages.json'),
includes: ['path', 'aliasPath', 'name', 'meta'],
}),
mpliveMainfestPlugin(env.SHOPRO_MPLIVE_ON)
],
server: {
host: true,
// open: true,
port: env.SHOPRO_DEV_PORT,
hmr: {
overlay: true,
},
},
};
};
>>>>>>> 3e7536fe572987b07e3ed6fb8b554b2a8000d1da