vue.config.js 415 B

1234567891011121314151617
  1. /**
  2. * 自动构建路由表 API: http://hhyang.cn/src/router/tutorial/rgRoutes.html#%E5%AE%89%E8%A3%85
  3. */
  4. // #ifdef H5
  5. const TransformPages = require('uni-read-pages')
  6. const tfPages = new TransformPages()
  7. module.exports = {
  8. configureWebpack: {
  9. plugins: [
  10. new tfPages.webpack.DefinePlugin({
  11. ROUTES: JSON.stringify(tfPages.routes)
  12. })
  13. ]
  14. }
  15. }
  16. // #endif