1.0.1 • Published 8 years ago

replace-task-webpack-plugin v1.0.1

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

replace-task-webpack-plugin

A gulp-replace-task port to webpack

Usage

To replace all @@foo to bar, and replace all /baz/ to bazbaz.

// webpack.config.js
module.exports = {
  // ... other configs
  plugins: [
    new ReplaceTaskWebpackPlugin({
      patterns: [
        {
          match: 'foo',
          replacement: 'bar'
        },
        {
          match: /baz/g,
          replacement: function(){
            return 'bazbaz';
          }
        }
      ]
    })
  ]
};

Also see

License

MIT