{"id":16222789,"url":"https://github.com/ssssota/unplugin-parcel-css","last_synced_at":"2025-04-02T12:27:31.320Z","repository":{"id":37045290,"uuid":"502641174","full_name":"ssssota/unplugin-parcel-css","owner":"ssssota","description":"A Vite/webpack/Rollup plugin with @parcel/css","archived":false,"fork":false,"pushed_at":"2022-08-04T01:41:27.000Z","size":329,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T03:14:47.969Z","etag":null,"topics":["parcel-css","rollup-plugin","vite-plugin","webpack-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/unplugin-parcel-css","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/ssssota.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":"2022-06-12T14:38:06.000Z","updated_at":"2022-10-18T15:49:42.000Z","dependencies_parsed_at":"2022-06-25T04:30:41.123Z","dependency_job_id":null,"html_url":"https://github.com/ssssota/unplugin-parcel-css","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Funplugin-parcel-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Funplugin-parcel-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Funplugin-parcel-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssota%2Funplugin-parcel-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssssota","download_url":"https://codeload.github.com/ssssota/unplugin-parcel-css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246813898,"owners_count":20838180,"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":["parcel-css","rollup-plugin","vite-plugin","webpack-plugin"],"created_at":"2024-10-10T12:15:16.548Z","updated_at":"2025-04-02T12:27:31.290Z","avatar_url":"https://github.com/ssssota.png","language":"TypeScript","readme":"# unplugin-parcel-css\n\n[![NPM version](https://img.shields.io/npm/v/unplugin-parcel-css)](https://www.npmjs.com/package/unplugin-parcel-css)\n\nA Vite/webpack/Rollup/esbuild plugin with\n[@parcel/css](https://github.com/parcel-bundler/parcel-css).\n\n@parcel/css is\n\n\u003e A CSS parser, transformer, and minifier written in Rust.\n\n## Usage\n\n### Vite\n\n```ts\n// vite.config.ts\nimport ParcelCSS from 'unplugin-parcel-css/vite';\nexport default defineConfig({\n  plugins: [\n    ParcelCSS({\n      /* options */\n    }),\n  ],\n});\n```\n\nExample: [`playground/`](./playground/)\n\n### Rollup\n\n```ts\n// rollup.config.js\nimport ParcelCSS from 'unplugin-parcel-css/rollup';\nexport default {\n  plugins: [\n    ParcelCSS({\n      /* options */\n    }),\n  ],\n};\n```\n\nYou should use with css bundler like `rollup-plugin-css-only`.\n\n### Webpack\n\n```ts\n// webpack.config.js\nmodule.exports = {\n  // ...\n  plugins: [\n    require('unplugin-parcel-css/webpack')({\n      /* options */\n    }),\n  ],\n};\n```\n\nYou should use with `css-loader`.\n\n### Next.js\n\n```ts\nmodule.exports = {\n  webpack: (config) =\u003e {\n    config.plugins.push(\n      require('unplugin-parcel-css/webpack')({\n        /* options */\n      })\n    );\n    return config;\n  },\n};\n```\n\n### Nuxt\n\n```ts\n// nuxt.config.js\nexport default {\n  buildModules: [\n    [\n      'unplugin-parcel-css/nuxt',\n      {\n        /* options */\n      },\n    ],\n  ],\n};\n```\n\n\u003e This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)\n\n### Vue CLI\n\n```ts\n// vue.config.js\nmodule.exports = {\n  configureWebpack: {\n    plugins: [\n      require('unplugin-parcel-css/webpack')({\n        /* options */\n      }),\n    ],\n  },\n};\n```\n\n## Contribute\n\nWelcome!\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssssota%2Funplugin-parcel-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssssota%2Funplugin-parcel-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssssota%2Funplugin-parcel-css/lists"}