@kwzm/replace-loader

2.1.0 • Public • Published

replace-loader

A loader to replace text in webpack, since the internal implementation is based on the string.prototype.replace implementation, the methods used are basically the same.

Install

npm i @kwzm/replace-loader

Usage

{
  loader: '@kwzm/replace-loader',
    options: {
      replace: [
        { from: 'old text', to: 'new text' },
        { from: /old text/gi, to: 'new text'}
      ]
    }
}

Licence

MIT

Readme

Keywords

Package Sidebar

Install

npm i @kwzm/replace-loader

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

3.52 kB

Total Files

5

Last publish

Collaborators

  • kwzm