简易版webpack实现 项目搭建 打开cmd,创建一个webpack-dev目录 mkdir webpack-dev cd webpack-dev 把项目拖进vscode中,初始化项目,执行 yarn init -y 构建项目目录结构 |-- webpack-dev |-- package-lock.json |-- package.json |-- yarn-error.log |-- yarn.lock |-- bin | |-- xs-pack.js |-- lib | |-- Compiler.js