You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/vue.config.js

24 lines
571 B

3 years ago
/*
* @Author: ch
* @Date: 2022-03-18 11:09:58
* @LastEditors: ch
* @LastEditTime: 2022-05-23 18:21:28
3 years ago
* @Description: file content
*/
const TransformPages = require('uni-read-pages')
const {webpack} = new TransformPages()
module.exports = {
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
ROUTES: webpack.DefinePlugin.runtimeValue(() => {
const tfPages = new TransformPages({
includes: ['path', 'name', 'aliasPath']
});
return JSON.stringify(tfPages.routes)
}, true )
})
]
},
transpileDependencies: ['uview-ui']
3 years ago
}