开发模式, 可替换vue和vue-router为开发版

pull/1/head 1.1.3
yutent 2023-05-19 10:40:45 +08:00
parent 1a56f37879
commit 877ba7c8bf
2 changed files with 8 additions and 1 deletions

View File

@ -33,6 +33,13 @@ export default async function createServer(root = '', conf = {}) {
const INJECT_SCSS = readFile(conf.inject?.scss)
const LEGACY_MODE = !!conf.legacy
if (conf.imports['vue-dev']) {
conf.imports.vue = conf.imports['vue-dev']
}
if (conf.imports['vue-router-dev']) {
conf.imports['vue-router'] = conf.imports['vue-router-dev']
}
if (USE_HTTPS) {
Object.assign(SERVER_OPTIONS, conf.devServer.ssl)

View File

@ -1,7 +1,7 @@
{
"name": "fite",
"type": "module",
"version": "1.1.2",
"version": "1.1.3",
"bin": {
"fite": "index.js"
},