replace-in-file-after-plugin
v1.0.0
Published
a webpack plugin for replace string in file after webpack building
Downloads
2
Readme
replace-in-file-after-plugin
a webpack plugin for replace string in file after webpack building
Installation
npm install replace-in-file-after-plugin --save-dev
Usage
// webpack.base.conf.js
const ReplaceInFileAfterPlugin = require('replace-in-file-after-plugin')
...
plugins: [
new ReplaceInFileAfterPlugin({
fileReg: /\.wxml$/,
assetsPath: 'dist',
search: /\/static\/images/g,
replace: 'images',
})
]