From e3bf1068fc2b768c1759d91f86606d8fc10ddc2a Mon Sep 17 00:00:00 2001 From: "3056762376@qq.com" <3056762376@qq.com> Date: Mon, 14 Nov 2022 17:41:15 +0800 Subject: [PATCH] changes --- .../02-webpack配置/webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/11-前端模块化开发/03-webpack模块化开发/02-webpack配置/webpack.config.js b/11-前端模块化开发/03-webpack模块化开发/02-webpack配置/webpack.config.js index 1190f4c..b736b72 100644 --- a/11-前端模块化开发/03-webpack模块化开发/02-webpack配置/webpack.config.js +++ b/11-前端模块化开发/03-webpack模块化开发/02-webpack配置/webpack.config.js @@ -1,4 +1,8 @@ +const path=require("path")//导入path全局包 module.exports={ entry:"./src/index.js", - output:"./dist/result.js" + output:{ + path:path.resolve(__dirname,"dist"), + filename:"result.js", + } } \ No newline at end of file