From 4cf6b0e37db13bd0e32db08a910917470bfea0d8 Mon Sep 17 00:00:00 2001 From: asd Date: Sun, 1 Dec 2019 19:07:58 +0800 Subject: [PATCH] update --- 2019/12/webpack.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/2019/12/webpack.md b/2019/12/webpack.md index 95de649..a028b8c 100644 --- a/2019/12/webpack.md +++ b/2019/12/webpack.md @@ -66,3 +66,16 @@ webpack.config.js 内容: ``` +const path = require('path'); +module.exports = { + // 入口js路径 + entry: './src/index.js', + // 编译输出的js及路径 + output: { + filename: 'bundle.js', + path: path.resolve(__dirname, 'dist') + } +}; + + +``` \ No newline at end of file