Files
BlockChainH5/vue.config.js
唐明明 08c56ea921 init
2021-09-23 17:03:28 +08:00

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