2.0.0 • Published 2 years ago

webpack-manifest-replace-plugin v2.0.0

Weekly downloads
79
License
MIT
Repository
github
Last release
2 years ago

webpack-manifest-replace-plugin

npm download Build Status

Webpack plugin to replace assets path using manifest context.

Install

# for webpack 5
npm install --save-dev webpack-manifest-replace-plugin

# for webpack 4
npm install --save-dev webpack-manifest-replace-plugin@1.0.0

# for webpack 3
npm install --save-dev webpack-manifest-replace-plugin@0.0.4

Usage

:warning: webpack-manifest-replace-plugin >= 1.0.0 is no longer required manifest.json file.

const ManifestReplacePlugin = require('webpack-manifest-replace-plugin');

module.exports = {
  ...
  plugins: [
    new ManifestReplacePlugin({
      include: path.resolve(__dirname, 'src'),
      test: /\.(jsp|php|htm|html)$/,
    })
  ]
  ...
};

Options

NameTypeDefaultDescription
include{String}undefinedFiles to include.
test{Pattern}/\.(htm\|html)$/Test to match files against.
outputDir{String}Webpack output.pathOutput directory for replaced files.

License

MIT © 2017 unchai

2.0.0

2 years ago

1.0.0

6 years ago

0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago