Please answer! !
How to configure webpack.config to uniformly inject external link js and css into all html to prevent external link resources from being packaged into the project.
学习ing2017-06-15 09:25:05
webpack.config.js
new HtmlwebpackPlugin({
template: APP_PATH+'/index.html'
})
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="外部css">
</head>
<body>
<script>外部js</script>
</body>
</html>