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