初始化
This commit is contained in:
18
vue.config.js
Normal file
18
vue.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
//vue.config.js
|
||||
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: ['luch-request']
|
||||
}
|
||||
Reference in New Issue
Block a user