我有一个空的新项目,当我运行 npm init 时,我得到了一个要回答的问题列表,例如:
name: (karma)
version: (1.0.0)
description:my project description
entry point: (index.js)
我真的很困惑说“入口点”,这是我的 index.html 文件还是我的 app.js 还是其他什么?
最佳答案
引自 blog post :
Entry point is the javascript file that will be invoked when consumers of your module “require” it, this file will include the main logic for your module, or if it is a large module you can export public functions found with other files (typically in the lib directory)
所以它应该是你的 app.js
文件。
关于javascript - npm init 中的 "entry point"是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32800066/