zachlhb
V2EX  ›  PHP

laravel-mix 与 composer 冲突问题

  •  
  •   zachlhb · Aug 29, 2018 · 3011 views
    This topic created in 2985 days ago, the information mentioned may be changed or developed.

    项目里用了 laravel-mix,当 composer dump-autoload 时候会去索引 node_modules 文件夹,但 node_modules 目录层级很深,就会导致 composer dump-autoload 命令卡死或者失败,问下这个要怎么解决啊,有没有办法 node_modules 目录排除啊?

    1 replies  •  2018-08-29 17:11:32 +08:00
    yachiyo
        1
    yachiyo  
       Aug 29, 2018
    检查你 composer.json 里的 autoload.classmap 字段是不是包括了 node_modules
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2467 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 12:13 · PVG 20:13 · LAX 05:13 · JFK 08:13
    ♥ Do have faith in what you're doing.