1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-09-02 17:30:44 +08:00

update: 移除node_modules依赖

This commit is contained in:
小莫唐尼
2024-07-11 11:24:11 +08:00
parent d0b3a42c1d
commit d22224e2fc
15 changed files with 45 additions and 1284 deletions
+1 -17
View File
@@ -1,8 +1,4 @@
//vue.config.js
const TransformPages = require('uni-read-pages')
const {
webpack
} = new TransformPages()
module.exports = {
devServer: {
disableHostCheck: true,
@@ -16,17 +12,5 @@ module.exports = {
}
}
}
},
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
ROUTES: webpack.DefinePlugin.runtimeValue(() => {
const tfPages = new TransformPages({
includes: ['path', 'name', 'aliasPath', "meta"]
});
return JSON.stringify(tfPages.routes)
}, true)
})
]
}
}
}