1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/LYTB-tmui-design

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
vite.config.ts 1.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
tmzdy Отправлено 25.10.2024 04:32 3fe8e9f
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { resolve } from "path"
import Components from "unplugin-vue-components/vite"
export default defineConfig({
define: {
__VUE_I18N_FULL_INSTALL__: true,
__VUE_I18N_LEGACY_API__: true,
__VUE_I18N_PROD_DEVTOOLS__: false,
},
build: {
target: "es6"
},
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
silenceDeprecations: ['legacy-js-api']
}
}
},
resolve: {
alias: [
{
find: "@",
replacement: resolve(__dirname, 'src')
}
]
},
server: {
port: 1314,
// 选项写法
proxy: {
'/pag': {
target: 'https://cdn.tmui.design',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api')
},
}
},
plugins: [
uni(),
vueJsx(),
Components({
dts: true,
resolvers: [
// example of importing Vant
(componentName) => {
if (componentName.startsWith('tm')) {
return { name: componentName.slice(2), from: 'tm' }
}
},
],
dirs: ['./src/uni_modules/tm-ui/components'],
include: [/\.vue$/, /\.uvue$/]
})
]
});

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/LYTB-tmui-design.git
git@api.gitlife.ru:oschina-mirror/LYTB-tmui-design.git
oschina-mirror
LYTB-tmui-design
LYTB-tmui-design
master