réplica de
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
update: 移除node_modules依赖
Este commit está contenido en:
+1
-17
@@ -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)
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Referencia en una nueva incidencia
Block a user