mirror of
https://gitee.com/newgateway/vtj.git
synced 2026-05-31 05:59:55 +08:00
28 lines
759 B
TypeScript
28 lines
759 B
TypeScript
import { createUniappViteConfig } from '@vtj/cli';
|
|
import uni from '@dcloudio/vite-plugin-uni';
|
|
import { createDevTools } from '@vtj/local';
|
|
import { resolve } from 'path';
|
|
import proxy from './proxy.config';
|
|
|
|
export default createUniappViteConfig({
|
|
proxy,
|
|
plugins: [
|
|
createDevTools({
|
|
enhance: true,
|
|
// staticBase: basePath,
|
|
devMode: false,
|
|
pluginNodeModulesDir: '../../node_modules'
|
|
}),
|
|
!process.env.PREVIEW ? uni() : undefined
|
|
],
|
|
alias: {
|
|
'@vtj/uni-app': resolve('../../platforms/uni-app/src/index.ts'),
|
|
'axios/lib/core/settle': resolve(
|
|
'../../node_modules/axios/lib/core/settle'
|
|
),
|
|
'axios/lib/helpers/buildURL': resolve(
|
|
'../../node_modules/axios/lib/helpers/buildURL'
|
|
)
|
|
}
|
|
});
|