16 lines
422 B
JavaScript
16 lines
422 B
JavaScript
|
const TransformPages = require('./js_sdk/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','animation', 'meta']
|
||
|
});
|
||
|
return JSON.stringify(tfPages.routes)
|
||
|
}, true )
|
||
|
})
|
||
|
]
|
||
|
}
|
||
|
}
|