【发布时间】:2017-12-12 18:03:25
【问题描述】:
我正在使用 webpack 构建一个简单的应用程序来组合我的所有模块。我的 webpack 似乎正在运行(尽管我已经与它的不工作作斗争)。 现在看起来找不到我的应用程序所需的 bundle.js。我收到此错误:
所以这是我的可能导致问题的文件
我的包JSON
{
"name": "quiz",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "mocha specs"
},
"author": "",
"license": "ISC",
"devDependencies": {
"mocha": "^3.4.2",
"webpack": "1.12.15"
}
}
以及查找 bundle.js 文件的 html 文件
<!DOCTYPE html>
<html>
<head>
<title>Quiz game</title>
</head>
<body>
<script src = "build.js "></script>
<div>
Quiz game
</div>
</body>
</html>
有什么想法可能是错的吗?
【问题讨论】:
标签: javascript webpack path