ignore-unchanged-webpack-plugin
v1.0.4
Published
A Webpack plugin to not emitting unchanged files to the output path
Downloads
386
Readme
npm install --save-dev ignore-unchanged-webpack-plugin
To build the bundle without overwriting the unchanged files
Overwriting the unchanged files will change the file modification time and can break caching mechanisms
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()],
};