在Vue.js网站上,带有HardSource的Webpack意外和神秘的dotnet运行“失败”消息

时间:2018-10-17 14:56:15

标签: asp.net-core webpack webpack-plugin

当我使用dotnet run启动我的Vue.js .NET Core项目时,收到以下“失败”消息,但该站点似乎正常运行。有人知道我为什么收到这些消息以及如何解决它吗?

c:\myproj\Web>dotnet run
Using launch settings from c:\myproj\Web\Properties\launchSettings.json...
Hosting environment: Development
Content root path: c:\myproj\Web
Now listening on: http://localhost:60000
Application started. Press Ctrl+C to shut down.
fail: Microsoft.AspNetCore.NodeServices[0]
      [hardsource:be1e46f8] Using 230 MB of disk space.
fail: Microsoft.AspNetCore.NodeServices[0]
      [hardsource:be1e46f8] Tracking node dependencies with: package-lock.json.
fail: Microsoft.AspNetCore.NodeServices[0]
      [hardsource:be1e46f8] Reading from cache be1e46f8...

1 个答案:

答案 0 :(得分:0)

看起来像dotnet run,如果不是,则将Hardsource详细消息报告为FAIL。我只是按照如下方式修改了我的HardSource配置(在webpack.config。*。js中),消息消失了。

new HardSourceWebpackPlugin({ info: { mode: 'none', level: 'warn' } }),