Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-13 10:58:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
58b9ccb6592aa3054ba61d0a4ae89454e7a4aea4
58b9ccb6
1 parent
585c0466
✨ feat: 配置编译读取目录
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
vite.config.js
vite.config.js
View file @
58b9ccb
...
...
@@ -8,7 +8,7 @@ export default({ command, mode }) => {
let
isProd
=
(
command
===
'serve'
);
// 情景配置是否为开发模式 serve 或 build
return
defineConfig
({
// root: '',
base
:
isProd
?
'/'
:
'/
shzl
/'
,
// 开发或生产环境服务的公共基础路径。
base
:
isProd
?
'/'
:
'/
f/voice
/'
,
// 开发或生产环境服务的公共基础路径。
// mode: '', // 在配置中指明将会把 serve 和 build 时的模式 都 覆盖掉。也可以通过命令行 --mode 选项来重写。
// define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。
plugins
:
[
// 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。
...
...
Please
register
or
login
to post a comment