Webpack来自/ main /文件夹来自哪里?

时间:2017-06-09 05:57:04

标签: angularjs webpack

当我重新加载我的第一页时,我收到此错误。 (对不起,我对此很新)

Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open 'G:\Github\thaihome\app\main\app.js'
    at Error (native)
    at Error (native)
    at eval (eval at <anonymous> (http://localhost:8080/app.bundle.js:305:1), <anonymous>:1:7)

我在所有文件中搜索了main,但无法在任何地方找到main

这是来自我的网站:

  config.entry = {
    app: './app/app.js'
  };

另据我的理解,它编译为app.bundle.js但该文件位于何处?

我想知道main是否是某个我没看过的默认设置?

以下是我的文件夹结构的屏幕截图: Folder Structure screenshot

1 个答案:

答案 0 :(得分:0)

问题的解决方法是将/ *注释更改为/ **。谢谢@torbenrudgaard

相关问题