silverdog
V2EX  ›  Vue.js

vue 项目打包问题

  •  
  •   silverdog ·
    INTKILOW · Feb 6, 2024 · 1765 views
    This topic created in 850 days ago, the information mentioned may be changed or developed.

    路由把约定路由改了 原来的 ...setupLayouts(routes),

    现在通过动态导入

    "vite-plugin-vue-layouts": "^0.7.0", "vite-plugin-pages": "^0.27.1",

    同样删除了 vite 中的配置 Pages()、Layouts()

    npm run dev 正常 npm run build (✓ 732 modules transformed.卡住了,等待无法继续)

    什么问题呢?

    Dragonphy
        1
    Dragonphy  
       Feb 7, 2024
    属于 Vite 的问题,你可以开启 Debug 模式,看看哪一个插件出问题了 https://vitejs.dev/guide/cli.html#build
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3020 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:03 · PVG 17:03 · LAX 02:03 · JFK 05:03
    ♥ Do have faith in what you're doing.