{"id":40819872,"url":"https://github.com/mjyocca/sfdx-deploy-webpack-plugin","last_synced_at":"2026-01-21T21:46:59.096Z","repository":{"id":42092411,"uuid":"252490136","full_name":"mjyocca/sfdx-deploy-webpack-plugin","owner":"mjyocca","description":"Webpack plugin that deploys your local SFDX project to your Salesforce Evironment.","archived":false,"fork":false,"pushed_at":"2023-01-09T23:53:13.000Z","size":399,"stargazers_count":2,"open_issues_count":10,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T15:52:53.243Z","etag":null,"topics":["salesforce","sfdx","webpack","webpack-plugin"],"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/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-04-02T15:13:14.000Z","updated_at":"2023-01-14T00:03:32.000Z","dependencies_parsed_at":"2023-02-08T16:02:01.029Z","dependency_job_id":null,"html_url":"https://github.com/mjyocca/sfdx-deploy-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mjyocca/sfdx-deploy-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fsfdx-deploy-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fsfdx-deploy-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fsfdx-deploy-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fsfdx-deploy-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjyocca","download_url":"https://codeload.github.com/mjyocca/sfdx-deploy-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjyocca%2Fsfdx-deploy-webpack-plugin/sbom","scorecard":{"id":651861,"data":{"date":"2025-08-11","repo":{"name":"github.com/mjyocca/sfdx-deploy-webpack-plugin","commit":"f3d4309c7a00565734ef3c6c50e97f796b79cedf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/14 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":"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":"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":"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":"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":"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 15 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":"56 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-vm64-cfqx-3698","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-8cf7-32gw-wr33","Warn: Project is vulnerable to: GHSA-hjrf-2m68-5959","Warn: Project is vulnerable to: GHSA-qwph-4952-7xr6","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","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-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-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-3329-pjwv-fjpg","Warn: Project is vulnerable to: GHSA-p6j9-7xhc-rhwp","Warn: Project is vulnerable to: GHSA-89gv-h8wf-cg8r","Warn: Project is vulnerable to: GHSA-gcv8-gh4r-25x6","Warn: Project is vulnerable to: GHSA-gmv4-r438-p67f","Warn: Project is vulnerable to: GHSA-8h2f-7jc4-7m3m","Warn: Project is vulnerable to: GHSA-3vjf-82ff-p4r3","Warn: Project is vulnerable to: GHSA-g694-m8vq-gv9h","Warn: Project is vulnerable to: GHSA-g78m-2chm-r7qv","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"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.124Z","repository_id":42092411,"created_at":"2025-08-21T13:42:48.124Z","updated_at":"2025-08-21T13:42:48.124Z"},"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","sfdx","webpack","webpack-plugin"],"created_at":"2026-01-21T21:46:57.852Z","updated_at":"2026-01-21T21:46:59.087Z","avatar_url":"https://github.com/mjyocca.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://img.shields.io/npm/v/sfdx-deploy-webpack-plugin.svg)](https://www.npmjs.com/package/sfdx-deploy-webpack-plugin)\n[![NPM Downloads](https://img.shields.io/npm/dm/sfdx-deploy-webpack-plugin.svg)](https://www.npmjs.com/package/sfdx-deploy-webpack-plugin)\n[![License](https://img.shields.io/github/license/mjyocca/sfdx-deploy-webpack-plugin.svg)](https://github.com/mjyocca/sfdx-deploy-webpack-plugin)\n\n# Sfdx Deploy Webpack Plugin\n\nWebpack plugin that deploys your local SFDX project to your Salesforce Evironment **(Developer|Sandbox|Scratch)** after webpack compilation.\n\n#### Default Behavior\n\n`sfdx-deploy-webpack-plugin` by default watches your local file system during webpack compilation and deploys those files to you default target org. Via the provided options you're able to alter the target org and files you wish to deploy. (Useful for an entire project deploy)\n\nPrimary use case is to deploy your webpack generated assets to your salesforce org via [staticresources](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_file_format.htm) along w/ other newly (created|modified) salesforce metadata files. However w/ the provided options can alter behavior and deploy other assets or your entrie project.\n\n[Learn More](https://github.com/mjyocca/sfdx-deploy-webpack-plugin/wiki)\n\n## Requirements\n\n- [Node and npm](https://nodejs.org/en/) installed on your local machine\n- Salesforce [SFDX CLI](https://developer.salesforce.com/tools/sfdxcli) installed on your local machine\n\n#### Additional Requirements:\n\n- Need to have your default development org authenticated\n- Need to have your project in salesforce's [source format](https://developer.salesforce.com/tools/vscode/en/user-guide/source-format) project structure.\n\n# Install\n\n```\nnpm i sfdx-deploy-webpack-plugin --save-dev\n```\n\n# Setup\n\nImport/Require the package into your webpack config file\n\n**webpack.config.js**\n\n```js\nconst path = require(\"path\");\nconst SfdxDeploy = require('sfdx-deploy-webpack-plugin');\n\nmodule.exports = {\n  entry: './src/app.js',\n  output: {\n    filename: \"[name]/[name].bundle.js\",\n    path: path.resolve(__dirname, \"./force-app/main/default/staticresources/dist\"),\n  }\n  plugins: [\n    new SfdxDeploy()\n  ],\n};\n```\n\n\u003ch2 align=\"center\"\u003eZero Config\u003c/h2\u003e\n\n`sfdx-deploy-webpack-plugin` plugin works without any configuration. :)\n\n\u003ch2 align=\"center\"\u003eOptions\u003c/h2\u003e\n\n|    Name     |    Type    |           Default           | Required | Description                                                                |\n| :---------: | :--------: | :-------------------------: | :------: | :------------------------------------------------------------------------- |\n| projectPath | `{String}` | `./force-app/main/default/` |  false   | path to your sfdx project directory                                        |\n|    delay    | `{Number}` |             250             |  false   | delays the deployment of your files after webpack compilation is finished. |\n| deployArgs  | `{Object}` |             N/A             |  false   | More info below                                                            |\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n#### deployArgs\n\n```js\n{\n  /**\n   * (Optional)\n   * A username or alias for the target org. Overrides the default target org.\n   *\n   * Type: string\n   */\n  targetusername?: string;\n  /**\n   * (Optional)\n   * Override the API version used for API requests made by this command.\n   *\n   * Type:\n   */\n  apiversion?: string;\n  /**\n   * (Optional)\n   * A comma-separated list of names of metadata components to deploy to the org.\n   *\n   * If you specify this parameter, don’t specify {sourcepath} or {manifest}.\n   *\n   * Type: array\n   */\n  metadata?: string[];\n  /**\n   * (Optional)\n   * (Attention) This is set automatically. If you wish to deploy entire project manually pass in this argument pointing to the root of your project OR path to your {manifest}\n   *\n   * A comma-separated list of paths to the local source files to deploy. The supplied paths can be to a single file (in which\n   * case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types\n   * in the directory and its sub-directories).\n   *\n   * If you specify this parameter, don’t specify {manifest} or {metadata}.\n   *\n   * Type: array\n   */\n  sourcepath?: string | string[];\n  /**\n   * (Optional)\n   * The complete path for the manifest (package.xml) file that specifies the components to deploy. All child components are included.\n   *\n   * If you specify this parameter, don’t specify {metadata} or {sourcepath}.\n   *\n   * Type: filepath\n   */\n  manifest?: string;\n}\n```\n\n_NOTE: Currently if you specify {metadata}, {sourcepath} or {manifest}, the plugin does NOT watch the filesystem and deploys any filesystem changes_\n\u003cbr/\u003e\n\n\u003c!-- \u003cp align=\"center\"\u003ecoming soon\u003c/p\u003e\n\u003cbr/\u003e --\u003e\n\n\u003ch2 align=\"center\"\u003eExample(s)\u003c/h2\u003e\n\n\u003cbr/\u003e\n\n### Deploy to a specific org\n\n**webpack.config.js**\n\n```js\nconst path = require('path');\nconst SfdxDeployPlugin = require('sfdx-deploy-webpack-plugin');\n\nmodule.exports = {\n  ...\n  plugins: [\n    new SfdxDeployPlugin({\n      projectPath: path.resolve('./force-app/main/default/'),\n      deployArgs: {\n        /* can be authenticated username or alias  */\n        targetusername: 'mysalesforceusername@domain.com'\n      }\n    })\n  ]\n}\n```\n\n### Deploy entire project\n\n**webpack.config.js**\n\n```js\nconst path = require('path');\nconst SfdxDeployPlugin = require('sfdx-deploy-webpack-plugin');\n\nmodule.exports = {\n  ...\n  plugins: [\n    new SfdxDeployPlugin({\n      projectPath: path.resolve('./force-app/main/default/'),\n      deployArgs: {\n        // if this is your default org don't need to include\n        targetusername: 'myDeveloperOrg',\n        sourcepath: path.resolve('./force-app'),\n        /* alt can specify path to your manifest xml file */\n        /* manifest: path.resolve('./manifest/package.xml') */\n      },\n    }),\n  ],\n};\n```\n\n### Deploy specific metadata components - _(Ex. Apex, Visualforce, Lwc)_\n\n**webpack.config.js**\n\n```js\nconst SfdxDeployPlugin = require('sfdx-deploy-webpack-plugin');\n\nmodule.exports = {\n  ...\n  plugins: [\n    new SfdxDeployPlugin({\n      deployArgs: {\n        metadata: [\n        'ApexClass',\n        'ApexPage',\n        'LightningComponentBundle'\n        ]\n        /* alt can pass an arry of paths or comma sep to {sourcepath} */\n        /*\n          sourcepath: [\n            path.resolve(__dirname, 'force-app/main/default/classes/'),\n            path.resolve(__dirname, 'force-app/main/default/pages/')\n            path.resolve(__dirname, 'force-app/main/default/lwc/')\n          ]\n        /*\n      }\n    })\n  ]\n}\n```\n\n### Toggle Prod and Dev builds w/ webpack arguments\n\npackage.json\n\n```json\n\"scripts\": {\n  \"dev:quickDeploy\": \"webpack --mode dev --env.development --env.deploy quick\",\n  \"dev:fullDeploy\": \"webpack --mode dev --env.development --env.deploy full\",\n  \"prod:fullDeploy\": \"webpack --env.production --env.deploy full\"\n}\n```\n\n**webpack.config.js**\n\n```js\nconst SfdxDeployPlugin = require('sfdx-deploy-webpack-plugin');\nconst path = require('path');\n\n\nmodule.exports = (env, argv) =\u003e {\n\n  const mode = env.production ? 'production' : 'development';\n  const deployMode = env.deploy;\n\n  const prodDeploy = {\n    sourcepath: path.resolve('./force-app/main/default/')\n  };\n\n  return {\n    ...\n    plugins: [\n      new SfdxDeployPlugin({\n        projectPath: path.resolve('force-app', 'main', 'default'),\n        deployArgs: deployMode === 'full' ? prodDeploy : {}\n      })\n    ]\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjyocca%2Fsfdx-deploy-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjyocca%2Fsfdx-deploy-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjyocca%2Fsfdx-deploy-webpack-plugin/lists"}