<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="../js/aaa.js" type="text/javascript"></script>
</head>
<body>
<div>
</div>
</body>
</html>
as shown in the code above, I have an index.html, that introduces a js through a relative path in the head tag. The aaa.js file is not compiled when you run webpack.
is there any way for webpack to compile this aaa.js
file, and after compilation, it can automatically replace the relative path of the file introduced in the index.html file to the compiled output path?