比如原来的页面下面这样的, 一个 html 包含一个 css 和两个 js, 能直接在浏览器里正常工作。 怎么把这些文件打包成一个 html 文件呢, 而且把 js css html 里面的换行都去掉。
<!DOCTYPE html>
<html>
<head>
<title>title</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="file1.js"></script>
<script src="file2.js"></script>
</head>
<body>
<center>
</center>
</body>
</html>
npm 安装东西都能搞定了 html-webpack-inline-source-plugin html-webpack-plugin 也都安装了 求对应的 webpack 配置文件, 谢谢了