{"id":16641242,"url":"https://github.com/xipasduarte/no-emit-webpack-plugin","last_synced_at":"2026-03-11T22:43:47.876Z","repository":{"id":28423381,"uuid":"116526747","full_name":"xipasduarte/no-emit-webpack-plugin","owner":"xipasduarte","description":"Stop an asset from being emitted by the webpack compiler.","archived":false,"fork":false,"pushed_at":"2023-01-07T04:08:19.000Z","size":598,"stargazers_count":5,"open_issues_count":5,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T16:14:35.282Z","etag":null,"topics":["webpack","webpack-plugin","webpack4","webpack5"],"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/xipasduarte.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-01-07T00:52:32.000Z","updated_at":"2022-01-03T23:42:42.000Z","dependencies_parsed_at":"2023-01-14T08:47:42.976Z","dependency_job_id":null,"html_url":"https://github.com/xipasduarte/no-emit-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/xipasduarte/no-emit-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xipasduarte%2Fno-emit-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xipasduarte%2Fno-emit-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xipasduarte%2Fno-emit-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xipasduarte%2Fno-emit-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xipasduarte","download_url":"https://codeload.github.com/xipasduarte/no-emit-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xipasduarte%2Fno-emit-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30405802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"last_error":"SSL_read: 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":["webpack","webpack-plugin","webpack4","webpack5"],"created_at":"2024-10-12T07:45:57.306Z","updated_at":"2026-03-11T22:43:47.855Z","avatar_url":"https://github.com/xipasduarte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# No Emit WebPack Plugin\n\n[![Build Status](https://travis-ci.org/xipasduarte/no-emit-webpack-plugin.svg?branch=master)](https://travis-ci.org/xipasduarte/no-emit-webpack-plugin)\n\nStop an asset from being emitted by the webpack compiler.\n\n## Install\n\n**Webpack 5**\n\n```bash\nnpm install --save-dev no-emit-webpack-plugin\n```\n\n```bash\nyarn add -D no-emit-webpack-plugin\n```\n\n**Webpack 4**\n\n```bash\nnpm install --save-dev no-emit-webpack-plugin@3.0.0\n```\n\n```bash\nyarn add -D no-emit-webpack-plugin@3.0.0\n```\n\n## Options\n\n\u003e :warning: By default, if you don't supply any options the bundles for all entry points will be removed.\n\n```js\nnew NoEmitPlugin(options: string | array)\n```\n\n* If a `string` is supplied only one asset bundle will be removed.\n* The array must be composed of elements with type `string` that will be matched with asset bundle names, and removed.\n\n## Usage\n\nThis plugin is most useful when you are bundling assets that start from file types other than JavaScript, like styles for instance. With it you can remove the resulting file defined in the `output` option of your `webpack.config.js`.\n\nBelow is an example on how to remove the `style.js` file from the emitted assets. We'll use the [Mini CSS Extract Plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to generate the CSS asset.\n\n```js\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin');\nconst NoEmitPlugin = require('no-emit-webpack-plugin');\n\nmodule.exports = {\n  entry: {\n    style: path.resolve(__dirname, 'style.css'),\n    main: path.resolve(__dirname, 'main.js'),\n  },\n  module: {\n    rules: [{\n      test: /\\.css/iu,\n      use: [\n        MiniCssExtractPlugin.loader,\n        'css-loader',\n      ],\n    }],\n  },\n  plugins: [\n    new MiniCssExtractPlugin(),\n    new NoEmitPlugin('style.js'),\n  ],\n}\n```\n\n## License\n\nMIT © [Pedro Duarte](https://github.com/xipasduarte)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxipasduarte%2Fno-emit-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxipasduarte%2Fno-emit-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxipasduarte%2Fno-emit-webpack-plugin/lists"}