Files
barter-app/vue.config.js
2021-07-23 14:30:06 +08:00

19 lines
393 B
JavaScript

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', 'meta']
});
return JSON.stringify(tfPages.routes)
}, true )
})
]
}
}