words-replace

主要是对webpack打包之后的代码里面第三方插件的敏感词之类的进行替换

Usage no npm install needed!

<script type="module">
  import wordsReplace from 'https://cdn.skypack.dev/words-replace';
</script>

README

replaceStr

主要是对webpack打包之后的代码里面第三方插件的敏感词之类的进行替换

npm install --save-dev words-replace

const wordsReplace = require('words-replace');
let webPackConfig = {
  plugins: [
     //....
     new wordsReplace(/[0-9]/g, 'output')
     //...
  ]
}