手动创建一些文件夹和文件
用命令初始化
cnpm init -y
安装该练习所用到的依赖
cnpm install webpack webpack-cli html-webpack-plugin -D
目录结构如下
index.js
console.log("index在控制台打印")
print.js
console.log("print在控制台打印")
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
</html>
package.json
{
"name": "webpack4-plugin",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test":