{"_id":"@caiguanhao/vite-plugin-css-injected-by-js","_rev":"1-03884ea080385aadb27968ed964c8d6c","name":"@caiguanhao/vite-plugin-css-injected-by-js","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@caiguanhao/vite-plugin-css-injected-by-js","version":"1.0.1","description":"A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.","main":"plugin.js","repository":{"type":"git","url":"git+https://github.com/caiguanhao/vite-plugin-css-injected-by-js.git"},"keywords":["vite","vite-plugin","plugin","typescript","css-injected-by-js","single-js-file","css","js"],"peerDependencies":{"vite":">2.0.0-0"},"devDependencies":{},"author":{"name":"Marco Prontera"},"license":"MIT","bugs":{"url":"https://github.com/caiguanhao/vite-plugin-css-injected-by-js/issues"},"homepage":"https://github.com/caiguanhao/vite-plugin-css-injected-by-js#readme","gitHead":"33612dae602d66aece82781b6c17a797af1ade65","_id":"@caiguanhao/vite-plugin-css-injected-by-js@1.0.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-iEyUyI1bsvjpvT+xZPH5G+xpB+uyr6Bu6VVxgnowJiSi5m/h8f/8JZcaNVMbHgFl9omQlA+SvsbMcQFvCMLKdQ==","shasum":"c6088de6338a95e055a57ebfe03ea2f17f683662","tarball":"https://registry.npmjs.org/@caiguanhao/vite-plugin-css-injected-by-js/-/vite-plugin-css-injected-by-js-1.0.1.tgz","fileCount":4,"unpackedSize":4047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmRsOCRA9TVsSAnZWagAAgvwP/jt7KSfVn84v4s1LuOYK\nK7G3xSdrvBN9LstDPDron2PBDnrn+0BX2Gk4ClC5fWroj2ggD0akjrXrVpGW\n6b2emDtCQkYbDUDuW/lKrg4anOLefC7ZCemRGMjIdzekDKip+RqFTh0QdJDw\nCMdmB0UtS5jfL14tKKAyVve2d5xCLlTNlNYpcq/M0VD1FO6e1yydCLe9SaKT\n/prVJXqnUhvXVTamg01fStocqOVnVH+0oWBbSHhIRcLP97BVaDClQmIviG4Q\n8d/3DdCwt3HX3DRuK5jpz9/4aPrdMyhUHpWzzn5wpii66/CUN+20wKhHZg3T\nFIeFb4jcRvDecPwYWFy6Tkm4DVDpjwI0sbd9i2DrjL5LZBkjWOuFgMek+5kd\n73v70QpfrO/qWKJljyWhzjbUfEYpY0UFdBNmkYJKR45GALcyfe4EkzWQ6RJJ\nNYKGEX8TBlmiM5V8WNXp1bB2y52e+gDGcLLk47cWVQ1a2saVavxE0G5yPY+M\nLutclLmWGru0Auw1mO6aGef8b6nMyspbVammEu+QxgXL2SXGR4Jl9+Do+LBV\nBSKkO3OwwD+cUwixcxP/5zs0dKfILHQU2SWMJfljeja0AauzwwY1NFSfCLva\nlyWT7lpYPyGAMSphK1Ywd1olODgKhgD406mRdnNi837mOkk9CRH1UEqCdtB5\nDg4o\r\n=mbAr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5IrD+5OEJhAprpVE2w1/ADkrR2HVQHVdFvBOGNLGq4AIgHAK4mx2iIqBjbMdncumE9ziVQ6cMDu+fhIXv/kBG0Ds="}]},"_npmUser":{"name":"caiguanhao","email":"caiguanhao@gmail.com"},"directories":{},"maintainers":[{"name":"caiguanhao","email":"caiguanhao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-css-injected-by-js_1.0.1_1637423886760_0.8146457913441554"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-20T15:58:06.701Z","1.0.1":"2021-11-20T15:58:06.905Z","modified":"2022-04-04T21:30:53.588Z"},"maintainers":[{"name":"caiguanhao","email":"caiguanhao@gmail.com"}],"description":"A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.","homepage":"https://github.com/caiguanhao/vite-plugin-css-injected-by-js#readme","keywords":["vite","vite-plugin","plugin","typescript","css-injected-by-js","single-js-file","css","js"],"repository":{"type":"git","url":"git+https://github.com/caiguanhao/vite-plugin-css-injected-by-js.git"},"author":{"name":"Marco Prontera"},"bugs":{"url":"https://github.com/caiguanhao/vite-plugin-css-injected-by-js/issues"},"license":"MIT","readme":"# Vite Plugin: CssInjectedByJs\nA Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.\n\n## How does it work\nEssentially what it does is take all the CSS generated by the build process and add it through javascript. \nThe CSS file is therefore not generated and the declaration in the generated HTML file is also removed.\n\n## Installation\n```\nyarn add -D @caiguanhao/vite-plugin-css-injected-by-js\n```\n\n## Usage\n```ts\nimport cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'\n\nexport default {\n  plugins: [\n    cssInJsPlugin(),\n  ]\n}\n```\n","readmeFilename":"README.md"}