康巴易测肤/伤疤uniapp小程序类
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

17 行
438B

  1. // 配置uni-read-pages自动加载路由表
  2. const TransformPages = require('uni-read-pages')
  3. const {webpack} = new TransformPages()
  4. module.exports = {
  5. configureWebpack: {
  6. plugins: [
  7. new webpack.DefinePlugin({
  8. ROUTES: webpack.DefinePlugin.runtimeValue(() => {
  9. const tfPages = new TransformPages({
  10. includes: ['path', 'name', 'aliasPath']
  11. });
  12. return JSON.stringify(tfPages.routes)
  13. }, true )
  14. })
  15. ]
  16. }
  17. }