Files
dtx_store/vue.config.js
唐明明 1c6091371e init
2022-06-07 16:37:03 +08:00

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