{"id":13671297,"url":"https://github.com/sashsvamir/webpack-delete-no-js-entries-plugin","last_synced_at":"2026-02-01T15:04:40.555Z","repository":{"id":57397400,"uuid":"146177419","full_name":"sashsvamir/webpack-delete-no-js-entries-plugin","owner":"sashsvamir","description":"This Webpack plugin will delete empty js files from output. This plugin will be applied only for entries with no js files (e.g. entries with styles only files).","archived":false,"fork":false,"pushed_at":"2019-07-11T07:49:17.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-04T04:44:09.530Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sashsvamir.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":"2018-08-26T12:09:26.000Z","updated_at":"2019-07-11T07:49:19.000Z","dependencies_parsed_at":"2022-09-16T14:43:15.343Z","dependency_job_id":null,"html_url":"https://github.com/sashsvamir/webpack-delete-no-js-entries-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sashsvamir/webpack-delete-no-js-entries-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashsvamir%2Fwebpack-delete-no-js-entries-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashsvamir%2Fwebpack-delete-no-js-entries-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashsvamir%2Fwebpack-delete-no-js-entries-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashsvamir%2Fwebpack-delete-no-js-entries-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sashsvamir","download_url":"https://codeload.github.com/sashsvamir/webpack-delete-no-js-entries-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashsvamir%2Fwebpack-delete-no-js-entries-plugin/sbom","scorecard":{"id":801200,"data":{"date":"2025-08-11","repo":{"name":"github.com/sashsvamir/webpack-delete-no-js-entries-plugin","commit":"386fcfdf58d6c2ec45856ae5c365acb4c791a640"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/5 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":"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":"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"}}]},"last_synced_at":"2025-08-23T10:32:11.204Z","repository_id":57397400,"created_at":"2025-08-23T10:32:11.204Z","updated_at":"2025-08-23T10:32:11.204Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28980855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T13:38:33.235Z","status":"ssl_error","status_checked_at":"2026-02-01T13:38:32.912Z","response_time":56,"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":[],"created_at":"2024-08-02T09:01:05.413Z","updated_at":"2026-02-01T15:04:40.538Z","avatar_url":"https://github.com/sashsvamir.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Webpack delete no js entries plugin\n===================================\n\nIf you build your app with multiply entries with no js files, e.g. entry only with styles, output of your app contains empty js files for that entry.\n\nThis Webpack plugin will delete empty js files from output.\n\nThis plugin will be applied only for entries with no js files.\n\n\n\n\n## Installation\n\n:small_orange_diamond: This plugin works with Webpack 4+.\n\n```shell\nnpm install webpack-delete-no-js-entries-plugin --save-dev\n```\n\n\n\n\n## Usage\n\nIn your webpack config, require the plugin then add an instance to the `plugins` array.\n\n```js\nconst WebpackDeleteNoJsEntriesPlugin = require('webpack-delete-no-js-entries-plugin');\n\nmodule.exports = {\n  \n  entry: {\n    // 'app' entry with js file\n    app: [\n      './app.js',\n      './app.sass',\n    ],\n    // 'page' entry with no js point\n    page: [\n      './page.sass'\n    ],\n  },\n  \n  output: {\n    path: path.join( __dirname, 'dist' ),\n    filename: '[name]-[hash].js',\n    chunkFilename: '[id]-[chunkhash].js',\n  },\n  \n  module: {\n    // Your loader rules go here.\n  },\n\n  plugins: [\n    new WebpackDeleteNoJsEntriesPlugin(),\n  ],\n\n};\n```\n\n\n\n\n## Sample output\n\n:small_orange_diamond: With this plugin applied, webpack output of `page` entry will without `page.js` file, but with `page.css`:\n\n```\n\"app.js\"\n\"app.css\"\n\"page.css\"\n```\n\nIf you build app without this plugin, webpack output of `page` entry will be with empty `page.js` file:\n\n```\n\"app.js\"\n\"app.css\"\n\"page.js\" \u003c-- empty js file\n\"page.css\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashsvamir%2Fwebpack-delete-no-js-entries-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsashsvamir%2Fwebpack-delete-no-js-entries-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashsvamir%2Fwebpack-delete-no-js-entries-plugin/lists"}