1.0.0 • Published 5 years ago

replace-in-file-after-plugin v1.0.0

Weekly downloads
4
License
ISC
Repository
-
Last release
5 years ago

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',
  })
]