{"id":16594090,"url":"https://github.com/jsdf/only-if-changed-webpack-plugin","last_synced_at":"2025-03-21T13:31:47.148Z","repository":{"id":6903096,"uuid":"55662192","full_name":"jsdf/only-if-changed-webpack-plugin","owner":"jsdf","description":"Webpack plugin to only run build if dependent files have changed","archived":false,"fork":false,"pushed_at":"2023-01-07T21:43:17.000Z","size":609,"stargazers_count":18,"open_issues_count":21,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-14T20:55:42.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-07T03:55:54.000Z","updated_at":"2024-02-26T10:45:55.000Z","dependencies_parsed_at":"2023-01-11T17:04:55.177Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/only-if-changed-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fonly-if-changed-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fonly-if-changed-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fonly-if-changed-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fonly-if-changed-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/only-if-changed-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244806118,"owners_count":20513383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T23:45:06.969Z","updated_at":"2025-03-21T13:31:46.723Z","avatar_url":"https://github.com/jsdf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# only-if-changed-webpack-plugin\n\nWebpack plugin to only run build if dependent files have changed\n\n## Example\n\n```js\nvar path = require('path')\nvar OnlyIfChangedPlugin = require('only-if-changed-webpack-plugin')\n\nvar opts = {\n    rootDir: process.cwd(),\n    devBuild: process.env.NODE_ENV !== 'production',\n}\n\nmodule.exports = {\n    output: {\n        filename: 'bundle.js',\n        path: path.join(opts.rootDir, 'build'),\n        pathinfo: opts.devBuild,\n    },\n    plugins: [\n        new OnlyIfChangedPlugin({\n            cacheDirectory: path.join(opts.rootDir, 'tmp/cache'),\n            cacheIdentifier: opts, // all variable opts/environment should be used in cache key\n        }),\n    ],\n}\n```\n\nAfter a successful build, all subsequent builds will skip compiling and emitting\nassets unless an input file dependency or output asset of the build has been\nmodified or deleted.\n\n### See also\n\n-   [cached-loader](https://github.com/jsdf/cached-loader) – Adds persistent on-disk caching to webpack loaders\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fonly-if-changed-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Fonly-if-changed-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fonly-if-changed-webpack-plugin/lists"}