{"id":40819880,"url":"https://github.com/mjyocca/static-resource-webpack-plugin","last_synced_at":"2026-01-21T21:46:59.530Z","repository":{"id":43961704,"uuid":"237385024","full_name":"mjyocca/static-resource-webpack-plugin","owner":"mjyocca","description":"Webpack plugin that reads the static resource directory of your sfdx project and creates the needed xml files required to deploy to salesforce","archived":false,"fork":false,"pushed_at":"2023-01-05T10:55:06.000Z","size":282,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T14:38:56.578Z","etag":null,"topics":["salesforce","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mjyocca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-31T07:58:45.000Z","updated_at":"2021-10-13T17:51:05.000Z","dependencies_parsed_at":"2023-02-04T02:04:13.775Z","dependency_job_id":null,"html_url":"https://github.com/mjyocca/static-resource-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mjyocca/static-resource-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fstatic-resource-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fstatic-resource-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fstatic-resource-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fstatic-resource-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjyocca","download_url":"https://codeload.github.com/mjyocca/static-resource-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fstatic-resource-webpack-plugin/sbom","scorecard":{"id":651862,"data":{"date":"2025-08-11","repo":{"name":"github.com/mjyocca/static-resource-webpack-plugin","commit":"e59974089baabd0cff20039efb67978d6441e8e1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T13:42:48.523Z","repository_id":43961704,"created_at":"2025-08-21T13:42:48.523Z","updated_at":"2025-08-21T13:42:48.523Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28644149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["salesforce","webpack","webpack-plugin"],"created_at":"2026-01-21T21:46:58.775Z","updated_at":"2026-01-21T21:46:59.518Z","avatar_url":"https://github.com/mjyocca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://img.shields.io/npm/v/static-resource-webpack-plugin.svg)](https://www.npmjs.com/package/static-resource-webpack-plugin)\n[![NPM Downloads](https://img.shields.io/npm/dm/static-resource-webpack-plugin.svg)](https://www.npmjs.com/package/static-resource-webpack-plugin)\n[![License](https://img.shields.io/github/license/mjyocca/static-resource-webpack-plugin.svg)](https://github.com/mjyocca/static-resource-webpack-plugin)\n\n# Static Resource Webpack Plugin\n\nThis is a [Webpack](https://webpack.js.org/) plugin that watches your configured output path in your static resource directory of your [Salesforce](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_file_format.htm) SFDX project and automatically creates the necessary MetaData XML files in order to deploy/push to a Salesforce Org.\n\nIf there is already a `.resource-meta.xml` for an item in the directory w/ the corresponding name, it is ignored. \n\nOnce created, the plugin doesn't overwrite the previously created file. To reset the resulted xml file, delete manually and re-run your webpack build.\n\n# Requirements\n* Node and npm installed on your machine\n* Your SFDX Project is in source format\n\n# Install\n\n```bash\nnpm i static-resource-webpack-plugin --save-dev\n```\n\n# Configuration\n\n\u003ch3\u003eStep 1: Require the Plugin into your Webpack config file\u003c/h3\u003e\n\n**webpack.config.js**\n\n```js\nconst StaticResourcePlugin = require('static-resource-webpack-plugin')\n```\n\n\u003ch3\u003eStep 2: Create a new instance of the Plugin\u003c/h3\u003e\n\n#### Then pass in a object w/ property name _staticResPath_\n\n**webpack.config.js**\n\n```js\nconst path = require('path')\nconst StaticResourcePlugin = require('static-resource-webpack-plugin')\n\nmodule.exports = {\n    entry: './src/index.js',\n    output: {\n        filename: '[name].bundle.js',\n        path: './force-app/main/default/staticresources',\n    },\n    plugins: [\n        new StaticResourcePlugin()\n    ],\n}\n```\n\n## Options\n\n|        Name         |     Type     |   Default   | Required | Description                                                        |\n| :----------------:  | :----------: | :---------: | :------: | :----------------------------------------------------------------- |\n| **`staticResPath`** |  `{String}`  | `./force-app/main/default/staticresources` |  `false`  | path to your static resource directory                             |\n| **`cacheControl`**  | `{String}`   | `Public`    | `false`  | Sets default cacheControl to `Public` or `Private`   |\n| **`excludeList`**       |  `{Array}`   | `undefined` | `false`  | List of file names to ignore and not create an equivalent file for |\n\n\n```js\n{\n    staticResPath: '', // set the path to the folder to watch and create xml files for\n    exclude: [''], // list of files/directories to exclude and not create a xml file for\n    cacheControl: 'Private'\n}\n```\n\n## Example\n\n_Project Structure_ (Before)\n\n```bash\n** Project **\n├── src\n│   ├── app\n│   │   ├── index.js\n├── force-app\n│   ├── main\n│   │   ├── default\n│   │   │   ├── staticresources\n│   │   │   │   ├── dist\n│   │   │   │   │   ├── vendor.bundle.js\n│   │   │   │   │   ├── main.bundle.js\n├── README.md\n├── package.json\n└── .gitignore\n```\n\n\n**webpack.config.js**\n\n```js\nnew StaticResourcePlugin({\n    staticResPath: path.resolve(\"./force-app/main/default/staticresources\")\n})\n```\n\nResulting File(s)\n\n**dist.resource-meta.xml**\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?\u003e\n\u003cStaticResource xmlns=\"http://soap.sforce.com/2006/04/metadata\"\u003e\n  \u003ccacheControl\u003ePublic\u003c/cacheControl\u003e\n  \u003ccontentType\u003eapplication/zip\u003c/contentType\u003e\n\u003c/StaticResource\u003e\n```\n\n_Project Structure_ (After)\n\n```bash\n** Project **\n├── src\n│   ├── app\n│   │   ├── index.js\n├── force-app\n│   ├── main\n│   │   ├── default\n│   │   │   ├── staticresources\n│   │   │   │   ├── dist\n│   │   │   │   │   ├── vendor.bundle.js\n│   │   │   │   │   ├── main.bundle.js\n│   │   │   │   │   dist.resource-meta.xml /* created xml file */ \n├── README.md\n├── package.json\n└── .gitignore\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjyocca%2Fstatic-resource-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjyocca%2Fstatic-resource-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjyocca%2Fstatic-resource-webpack-plugin/lists"}