configuration in package.json
{
"name": "pack",
"version": "1.0.0",
"description": "",
"main": "app/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "gx",
"license": "ISC",
"devDependencies": {
"webpack": "^4.22.0",
"webpack-cli": "^3.1.2"
}
}
File structure
enter the packaged command node_modules.binwebpack appmain.js publicbundle.js to report an error
ERROR in multi ./app/main.js public/bundle.js
Module not found: SyntaxError: E:\Pack\package.json (directory description file): SyntaxError: E:\Pack\package.json (directory de
scription file): SyntaxError: Unexpected token m in JSON at position 78
@ multi ./app/main.js public/bundle.js main[0]
ERROR in multi ./app/main.js public/bundle.js
Module not found: SyntaxError: E:\Pack\package.json (directory description file): SyntaxError: E:\Pack\package.json (directory de
scription file): SyntaxError: Unexpected token m in JSON at position 78
@ multi ./app/main.js public/bundle.js main[1]
want to help find the problem?