ignore-unchanged-webpack-plugin

1.0.4 • Public • Published

ignore-unchanged-webpack-plugin

A Webpack plugin to not emitting unchanged files to the output path

Install

npm install --save-dev ignore-unchanged-webpack-plugin

Usage

To build the bundle without overwriting the unchanged files

Overwriting the unchanged files will change the file modification time and can break caching mechanisms

Examples

webpack.config.js

const IgnoreUnchangedFilesPlugin = require('ignore-unchanged-webpack-plugin');

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ExtractTextPlugin.extract({
          fallback: 'style-loader',
          use: 'css-loader',
        }),
      },
    ],
  },
  plugins: [new IgnoreUnchangedFilesPlugin()],
};

Maintainers

Chua Kang Ming

Readme

Keywords

Package Sidebar

Install

npm i ignore-unchanged-webpack-plugin

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

8.68 kB

Total Files

7

Last publish

Collaborators

  • kambing86