147 Star 853 Fork 249

J.sky/PrimarySchoolMathematics

加入 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,
},
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/J_Sky/PrimarySchoolMathematics.git
git@gitee.com:J_Sky/PrimarySchoolMathematics.git
J_Sky
PrimarySchoolMathematics
PrimarySchoolMathematics
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385