only-if-changed-webpack-plugin
Webpack plugin to only run build if dependent files have changed
Example
var path = var OnlyIfChangedPlugin = var opts = rootDir: process devBuild: processenvNODE_ENV !== 'production' moduleexports = output: filename: 'bundle.js' path: path pathinfo: optsdevBuild plugins: cacheDirectory: path cacheIdentifier: opts // all variable opts/environment should be used in cache key
After a successful build, all subsequent builds will skip compiling and emitting assets unless an input file dependency or output asset of the build has been modified or deleted.
See also
- cached-loader – Adds persistent on-disk caching to webpack loaders