{"id":22281621,"url":"https://github.com/waysact/webpack-subresource-integrity","last_synced_at":"2025-04-04T13:11:58.352Z","repository":{"id":41251405,"uuid":"46527115","full_name":"waysact/webpack-subresource-integrity","owner":"waysact","description":"Webpack plugin for enabling Subresource Integrity.","archived":false,"fork":false,"pushed_at":"2023-11-01T23:09:36.000Z","size":4196,"stargazers_count":368,"open_issues_count":24,"forks_count":45,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-03-28T12:07:42.739Z","etag":null,"topics":["html-webpack-plugin","sri","subresource-integrity","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waysact.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-19T23:39:06.000Z","updated_at":"2025-03-24T07:11:58.000Z","dependencies_parsed_at":"2024-06-18T12:19:07.796Z","dependency_job_id":"111d1b5a-ee12-4a2a-afae-842ff7fb7bb2","html_url":"https://github.com/waysact/webpack-subresource-integrity","commit_stats":{"total_commits":374,"total_committers":13,"mean_commits":28.76923076923077,"dds":"0.10160427807486627","last_synced_commit":"914fdd9dd5982b4f52782c55eb6cb33fea5861cc"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waysact%2Fwebpack-subresource-integrity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waysact%2Fwebpack-subresource-integrity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waysact%2Fwebpack-subresource-integrity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waysact%2Fwebpack-subresource-integrity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waysact","download_url":"https://codeload.github.com/waysact/webpack-subresource-integrity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182363,"owners_count":20897380,"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":["html-webpack-plugin","sri","subresource-integrity","webpack"],"created_at":"2024-12-03T16:19:50.413Z","updated_at":"2025-04-04T13:11:58.331Z","avatar_url":"https://github.com/waysact.png","language":"TypeScript","readme":"# webpack-subresource-integrity\n\n[![npm version][npm-badge]][npm-url]\n[![Build Status][tests-badge]][tests-url]\n[![Coverage Status][coverage-badge]][coverage-url]\n[![License][license-badge]][license-url]\n\nIf you're looking for **installation and usage instructions**, visit the [main package](https://github.com/waysact/webpack-subresource-integrity/blob/main/webpack-subresource-integrity/#readme).\n\nOr you might be looking for the 1.x version with **support for Webpack 1-4 and older versions of html-webpack-plugin**? Visit the [1.x branch](https://github.com/waysact/webpack-subresource-integrity/tree/1.x/#readme).\n\n**Upgrading from version 1.x? [Read the migration guide](https://github.com/waysact/webpack-subresource-integrity/blob/main/MIGRATE-v1-to-v5.md).**\n\nIf you want to hack on the package, read on \u0026mdash; you're in the right place.\n\n## Installing from source\n\nTo install from source, clone this repository, cd into it and run\n\n```\nyarn\n```\n\nNote: this repository uses yarn workspaces; you _have to_ use a recent\nversion of Yarn, npm won't work. (This limitation does not apply to\nthe built package; you can install that with npm, yarn, or any other\npackage manager.)\n\n## Running tests\n\nThe following will run all unit tests, integration tests, examples, and lint.\nIt will also build the package and run a smoke test on the resulting tarball:\n\n```\nyarn check\n```\n\n## Adding a new test\n\nThe easiest way to add a new test is to create an _example_, which is an\nintegration test. An example is a self-contained package in directory\n`example`. It should follow these simple rules:\n\n- When `yarn webpack` is invoked inside the package, it returns a zero\n  exit code for a test pass, and a non-zero exit code for a test\n  failure.\n- The package _must_ have `nyc` installed for coverage reporting to\n  work.\n- The package _must_ specify `*` as the version for\n  `webpack-subresource-integrity` so that it picks up the version from\n  inside the workspace (instead of using a published version.)\n- The package _should_ use `expect` for testing expectations.\n- The package _should_ make sure all versions it uses for `nyc`,\n  `expect`, `webpack` etc. match those used in other examples, unless\n  there's a good reason to use a different version.\n- If the example is an end-to-end test (runs tests in the browser) it\n  should use\n  [wsi-test-helper](https://github.com/waysact/webpack-subresource-integrity/blob/main/wsi-test-helper/)\n  to do so. See its README for more information.\n\n[npm-badge]: https://img.shields.io/npm/v/webpack-subresource-integrity.svg\n[npm-url]: https://www.npmjs.com/package/webpack-subresource-integrity\n[tests-badge]: https://github.com/waysact/webpack-subresource-integrity/actions/workflows/test.yml/badge.svg?branch=main\n[tests-url]: https://github.com/waysact/webpack-subresource-integrity/actions\n[coverage-badge]: https://coveralls.io/repos/github/waysact/webpack-subresource-integrity/badge.svg?branch=main\n[coverage-url]: https://coveralls.io/github/waysact/webpack-subresource-integrity?branch=main\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license-url]: https://raw.githubusercontent.com/waysact/webpack-subresource-integrity/main/LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaysact%2Fwebpack-subresource-integrity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaysact%2Fwebpack-subresource-integrity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaysact%2Fwebpack-subresource-integrity/lists"}