1 Star 0 Fork 246

途中有风/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,
},
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/sshjoin/PrimarySchoolMathematics.git
[email protected]:sshjoin/PrimarySchoolMathematics.git
sshjoin
PrimarySchoolMathematics
PrimarySchoolMathematics
master

搜索帮助