diff --git a/webpack.md b/webpack.md index e6761cc..04219a6 100644 --- a/webpack.md +++ b/webpack.md @@ -93,4 +93,13 @@ module.exports = { ``` ## 入口起点 -> 在webpack中有多种 \ No newline at end of file +> 在webpack中有多种定义entry的方法 +### 单个入口起点 +config +``` +const config = { + entry: './path/to/my/entry/file.js' +}; + +module.exports = config; +```