javascript - How to configure webpack to introduce external link css and js
高洛峰
高洛峰 2017-06-15 09:23:05
0
1
1144

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.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
学习ing

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>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template