webpack学习笔记
配置
配置文件是js文件,遵循 CommonJS规范,require导入其它文件
webpack.config.js配置如下
const path require(path);module.exports {mode: development,entry: ./foo.js,output: {path: path.resolve(__dirname, dist),filename: foo.bundle.js,},…
2026/7/24 21:46:04