{"id":15065712,"url":"https://github.com/medfreeman/ignore-assets-webpack-plugin","last_synced_at":"2025-11-01T05:30:24.326Z","repository":{"id":57113804,"uuid":"81099362","full_name":"medfreeman/ignore-assets-webpack-plugin","owner":"medfreeman","description":"Ignore assets from compilation. Useful when you use non-js files as entry points with extract-text-webpack-plugin, and don't need the resulting empty js files.","archived":false,"fork":false,"pushed_at":"2018-05-15T08:12:32.000Z","size":23,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-09T13:46:05.640Z","etag":null,"topics":["assets","files","ignore","webpack","webpack-plugin","webpack2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/medfreeman.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}},"created_at":"2017-02-06T15:08:12.000Z","updated_at":"2023-09-04T16:39:42.000Z","dependencies_parsed_at":"2022-08-22T00:10:48.426Z","dependency_job_id":null,"html_url":"https://github.com/medfreeman/ignore-assets-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medfreeman%2Fignore-assets-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medfreeman%2Fignore-assets-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medfreeman%2Fignore-assets-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medfreeman%2Fignore-assets-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/medfreeman","download_url":"https://codeload.github.com/medfreeman/ignore-assets-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219855253,"owners_count":16556176,"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":["assets","files","ignore","webpack","webpack-plugin","webpack2"],"created_at":"2024-09-25T00:46:10.711Z","updated_at":"2025-11-01T05:30:24.270Z","avatar_url":"https://github.com/medfreeman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ignore-assets-webpack-plugin\r\n\r\n[![Build Status](https://img.shields.io/travis/medfreeman/ignore-assets-webpack-plugin.svg?label=build)](https://travis-ci.org/medfreeman/ignore-assets-webpack-plugin)\r\n[![npm version](https://img.shields.io/npm/v/ignore-assets-webpack-plugin.svg)](https://www.npmjs.com/package/ignore-assets-webpack-plugin)\r\n[![dependencies Status](https://img.shields.io/david/medfreeman/ignore-assets-webpack-plugin.svg)](https://david-dm.org/medfreeman/ignore-assets-webpack-plugin)\r\n[![peerDependencies Status](https://img.shields.io/david/peer/medfreeman/ignore-assets-webpack-plugin.svg)](https://david-dm.org/medfreeman/ignore-assets-webpack-plugin?type=peer)\r\n[![Coverage Status](https://img.shields.io/coveralls/medfreeman/ignore-assets-webpack-plugin/master.svg)](https://coveralls.io/github/medfreeman/ignore-assets-webpack-plugin?branch=master)\r\n\r\n## peerDependencies\r\n\r\nwebpack \u003e=2.2.0\r\n\r\n## Installation\r\n\r\n```console\r\n$ npm i -D ignore-assets-webpack-plugin\r\n```\r\n\r\n## Usage\r\n\r\n```\r\n/* ES6 */\r\nimport IgnoreAssetsWebpackPlugin from 'ignore-assets-webpack-plugin';\r\n\r\n/* ES5 - CommonJS */\r\nvar IgnoreAssetsWebpackPlugin = require('ignore-assets-webpack-plugin');\r\n\r\n\r\nwebpack({\r\n\t\t\tentry: 'src/test.css',\r\n\t\t\toutput: {\r\n\t\t\t\tfilename: '[name]-dist.js'\r\n\t\t\t},\r\n\t\t\tmodule: {\r\n\t\t\t\trules: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttest: /\\.css$/,\r\n\t\t\t\t\t\tuse: ExtractTextWebpackPlugin.extract({\r\n\t\t\t\t\t\t\tfallback: 'style-loader',\r\n\t\t\t\t\t\t\tuse: [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tloader: 'css-loader'\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tplugins: [\r\n\t\t\t\tnew ExtractTextWebpackPlugin('[name]-dist.css'),\r\n\t\t\t\tnew IgnoreAssetsPlugin({\r\n\t\t\t\t\tignore: 'main-dist.js'\r\n\t\t\t\t})\r\n\t\t\t]\r\n\t\t}\r\n```\r\n\r\n## Options\r\n\r\nignore: (String | Array) List of assets to be ignored by webpack.\r\n\r\n\r\n## CONTRIBUTING\r\n\r\n* ⇄ Pull requests and ★ Stars are always welcome.\r\n* For bugs and feature requests, please create an issue.\r\n* Pull requests must be accompanied by passing automated tests (`$ npm test`).\r\n\r\n## [CHANGELOG](CHANGELOG.md)\r\n\r\n## [LICENSE](LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedfreeman%2Fignore-assets-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedfreeman%2Fignore-assets-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedfreeman%2Fignore-assets-webpack-plugin/lists"}