1 Star 0 Fork 229

GuitarSun / PrimarySchoolMathematics_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 942 Bytes
一键复制 编辑 原始数据 按行查看 历史
J.sky 提交于 2023-05-22 19:31 . 打包部署GitHub
import path from "path";
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {createHtmlPlugin} from "vite-plugin-html";
import {viteStaticCopy} from "vite-plugin-static-copy";
const srcPath = path.resolve(__dirname, 'src')
export default defineConfig({
server: {
port: 1101,
},
resolve: {
alias: {
'@/': `${srcPath}/`,
}
},
plugins: [
vue(),
createHtmlPlugin({
inject: {
data: {
title: '小学数学口算题 | Primary School Mathematics'
}
}
}),
viteStaticCopy({
silent: true,
targets: [
{
src: 'dist/*',
dest: path.resolve(__dirname, 'docs')
}
]
})
],
base:'./',
build: {
chunkSizeWarningLimit: 1500,
},
})
Python
1
https://gitee.com/NAMELTNEG/PrimarySchoolMathematics_1.git
git@gitee.com:NAMELTNEG/PrimarySchoolMathematics_1.git
NAMELTNEG
PrimarySchoolMathematics_1
PrimarySchoolMathematics_1
master

搜索帮助