insert-plugin-webpack

webpack打包文件插入内容

Usage no npm install needed!

<script type="module">
  import insertPluginWebpack from 'https://cdn.skypack.dev/insert-plugin-webpack';
</script>

README

Insert Webpack Plugin

对webpack打包后的文件再次进行额外的操作

安装

选项

参数名 类型 默认值 描述
type {String|RegExp} /.*/ 要处理的文件范围
inner Array [] 要插入文件头部的内容(目前仅支持在头部插入)