工程目录为以下:(该工程是由construct 3打包成的web版)
然后想用webpack打包成一个index.html和一个bundle.js。
要求所有图片/字体都打包成base64的格式。
请问改怎么配置webpack.config.js呢?工程目录又是怎样的呢?
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>C3Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<link rel="manifest" href="appmanifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" sizes="128x128" href="icons/icon-128.png">
<link rel="apple-touch-icon" sizes="256x256" href="icons/icon-256.png">
<link rel="apple-touch-icon" sizes="512x512" href="icons/icon-512.png">
<link rel="icon" type="image/png" href="icons/icon-512.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="fb-root"></div>
<script src="c2runtime.js"></script>
<script src="start.js"></script>
<script src="register-sw.js"></script>
</body>
</html>