mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
v1.0.0-beta 源码正式开源
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
//vue.config.js
|
||||
const TransformPages = require('uni-read-pages')
|
||||
const {
|
||||
webpack
|
||||
} = new TransformPages()
|
||||
module.exports = {
|
||||
devServer: {
|
||||
disableHostCheck: true,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "https://b.925i.cn",
|
||||
changeOrigin: true,
|
||||
secure: true,
|
||||
pathRewrite: {
|
||||
"^/api": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
ROUTES: webpack.DefinePlugin.runtimeValue(() => {
|
||||
const tfPages = new TransformPages({
|
||||
includes: ['path', 'name', 'aliasPath', "meta"]
|
||||
});
|
||||
return JSON.stringify(tfPages.routes)
|
||||
}, true)
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user