我是 ReactJS 和 Webpack 的新手,我正在使用 react-boilerplate,我正在尝试向具有自己的一组外部库的样板添加一个模板。
我面临的问题是每次我尝试包含链接到这些外部库的标签时,webpack 都会重新编译这些文件并更改内容。这是抛出一个错误。
<!doctype html>
<html lang="en">
<head>
<!-- The first thing in any HTML file should be the charset -->
<meta charset="utf-8">
<!-- Make the page mobile compatible -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Allow installing the app to the homescreen -->
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<title>Avalon</title>
<script type="text/javascript" src="resources/scripts/core/libraries/jquery.min.js"></script>
</head>
<body>
<!-- The app hooks into this div -->
<div id="app"></div>
</body>
</html>
在运行时,如果我检查jquery.min.js的来源,它的内容就会改变。
我不确定要在配置中更改什么,或者我做错了什么。