webpack hangs at on “95% emit” / “95% emitting”

前端 未结 11 2006
不思量自难忘°
不思量自难忘° 2021-02-05 14:52

This is my production webpack config. The two quotes in the title refer to webpack2 and webpack respectively. Both hang for me with a similar error.

This is my command t

11条回答
  •  鱼传尺愫
    2021-02-05 15:20

    In my case (Windows environment and laravel-mix) there weren't any incorrect characters in the path, since even a dead simple configuration didn't work. It was just webpack (webpack@3.12.0) doing something stupid of his own and the problem has been solved using publicPath option like this:

    mix.options({
        publicPath: ('./')
    });
    

    which according to the documentation:

    allows you to specify the base path for all the assets within your application

    Alternatively you can use:

    mix.setPublicPath('./');
    

提交回复
热议问题