chore: adjust the windicss reference

This commit is contained in:
vben
2021-08-24 00:28:53 +08:00
parent a426b9027e
commit 9dd9fcd334
4 changed files with 40 additions and 29 deletions

View File

@@ -1,17 +1,14 @@
import type { UserConfig, ConfigEnv } from 'vite';
import pkg from './package.json';
import moment from 'moment';
import { loadEnv } from 'vite';
import { resolve } from 'path';
import { generateModifyVars } from './build/generate/generateModifyVars';
import { createProxy } from './build/vite/proxy';
import { wrapperEnv } from './build/utils';
import { createVitePlugins } from './build/vite/plugin';
import { OUTPUT_DIR } from './build/constant';
import pkg from './package.json';
import moment from 'moment';
function pathResolve(dir: string) {
return resolve(process.cwd(), '.', dir);
}
@@ -53,7 +50,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
find: /\/#\//,
replacement: pathResolve('types') + '/',
},
// ['@vue/compiler-sfc', '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js'],
],
},
server: {
@@ -83,6 +79,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
__INTLIFY_PROD_DEVTOOLS__: false,
__APP_INFO__: JSON.stringify(__APP_INFO__),
},
css: {
preprocessorOptions: {
less: {