html-webpack-include-file-plugin
在html-webpack-plugin基础上增加引入文件内容功能,类似fis的<link rel="import">
install
$ npm i -D html-webpack-include-file-plugin
config
const HtmlWebpackIncludeFilePlugin = plugins:
include js
output with script
tag wrap
include css
output with style
tag wrap
include others
output without any tag
important
Currently, the source path is relative to the process.cwd()
only.
let sourcePath = path