{"_id":"@originjs/vite-plugin-global-style","_rev":"7-37eeb675e82a98e4beadc19aaa02f7fb","name":"@originjs/vite-plugin-global-style","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@originjs/vite-plugin-global-style","version":"1.0.0","author":{"name":"@originjs"},"license":"MulanPSL2","_id":"@originjs/vite-plugin-global-style@1.0.0","maintainers":[{"name":"alan_scut","email":"wp_scut@163.com"},{"name":"flyfishzy","email":"flyfish.zy@gmail.com"},{"name":"yuangongji","email":"yuangongji@foxmail.com"},{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},{"name":"jiawulin","email":"jiawulin@vip.qq.com"}],"homepage":"https://github.com/originjs/origin.js/tree/main/packages/vite-plugin-global-style","bugs":{"url":"https://github.com/originjs/origin.js/issues"},"dist":{"shasum":"788f1562cd6727e005e8e06e7887548227b62d95","tarball":"https://registry.npmjs.org/@originjs/vite-plugin-global-style/-/vite-plugin-global-style-1.0.0.tgz","fileCount":5,"integrity":"sha512-ZbNZBCXIxztLWZo7I5ce8lBB3YC2DnHd4PXBgGcaBmTCHrf5JqmbnAh+kJkG/s1Vu0v5YzNwQrYpwlRg9MduBg==","signatures":[{"sig":"MEQCIEIXDIiHS8LPols/XfR83ZYQ4DfxAvfPEYCTDBs7H/MDAiAYApwJZCJXokTkTh9EV3lsfOEXelxZWgLxZH5VawhhQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14748},"main":"dist/index.js","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},"repository":{"url":"git+https://github.com/originjs/origin.js.git","type":"git"},"_npmVersion":"7.6.3","description":"A vite plugin that help you handle with global styles","directories":{},"_nodeVersion":"16.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-global-style_1.0.0_1632314468404_0.9770229267344532","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@originjs/vite-plugin-global-style","version":"1.0.1","author":{"name":"@originjs"},"license":"MulanPSL2","_id":"@originjs/vite-plugin-global-style@1.0.1","maintainers":[{"name":"flyfishzy","email":"flyfish.zy@gmail.com"},{"name":"alan_scut","email":"wp_scut@163.com"},{"name":"yuangongji","email":"yuangongji@foxmail.com"},{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},{"name":"jiawulin","email":"jiawulin@vip.qq.com"}],"homepage":"https://github.com/originjs/origin.js/tree/main/packages/vite-plugin-global-style","bugs":{"url":"https://github.com/originjs/origin.js/issues"},"dist":{"shasum":"75def2bc2d7b19d021f7d0c14a8e3e99e7c7eb24","tarball":"https://registry.npmjs.org/@originjs/vite-plugin-global-style/-/vite-plugin-global-style-1.0.1.tgz","fileCount":5,"integrity":"sha512-G1W6Yx7SNVyI5uoRiJAcXSIj16WsSSuH5LehzrIjs1LKiZnBgOrWxk4NUH+dir2RNQoRg7XoTVYpMgtxlS1QiA==","signatures":[{"sig":"MEUCIQCVZ6GBYCGJ+DRLpaYzCe2YCdVKbFH2dlFIgNfwSCffRwIgdAsIeCXi2JrUAA9v2f/7r4UK5L6TkPZx4JzRuMiWca8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16321},"main":"dist/index.js","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},"repository":{"url":"git+https://github.com/originjs/origin.js.git","type":"git"},"_npmVersion":"7.6.3","description":"A vite plugin that help you handle with global styles","directories":{},"_nodeVersion":"16.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-global-style_1.0.1_1632447917891_0.9145369341700527","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@originjs/vite-plugin-global-style","version":"1.0.2","author":{"name":"@originjs"},"license":"MulanPSL2","_id":"@originjs/vite-plugin-global-style@1.0.2","maintainers":[{"name":"flyfishzy","email":"flyfish.zy@gmail.com"},{"name":"alan_scut","email":"wp_scut@163.com"},{"name":"yuangongji","email":"yuangongji@foxmail.com"},{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},{"name":"jiawulin","email":"jiawulin@vip.qq.com"}],"homepage":"https://github.com/originjs/origin.js/tree/main/packages/vite-plugin-global-style","bugs":{"url":"https://github.com/originjs/origin.js/issues"},"dist":{"shasum":"582b33461795c7c52a00f5c33d316335663ce99d","tarball":"https://registry.npmjs.org/@originjs/vite-plugin-global-style/-/vite-plugin-global-style-1.0.2.tgz","fileCount":5,"integrity":"sha512-eYHeM4gscG8TgDN0bG7X/5zKO9d9Mc1oEEAbXuMAcKsi9Xsmwp3KZD+b5mfxsbPh+znwdUMVP5zNBInKRSBpPA==","signatures":[{"sig":"MEYCIQDDQPwcRV7Hw0zoc8bXARM2nOM8ZCMyKJztP3vB+DvSzQIhAPIwI9EEPFTNJFbeRsT2dlumTXCvbysEBFWHFVMwP1uN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2U0ICRA9TVsSAnZWagAAC68P/AmLcRvKMrDCynKWH7Dh\nuqqtwD9XXcwgQAgwaw6VBA5OAtgEvD1xFBvfAyVr+/qWOJFji/VMBCz+vWJn\nTw2ZDpy4D9ta2hOz/yhqftvAkKtV6kzZiUFux6GduKecNgSQNjSMJoKLVhBU\nEjUXVLlNK2w4UQ05vUKYdhL3hYL8pS2OSb0IMTjR8acZ5qAtwUNyILYuG53X\nfy7+aGeoG8KmujX1n1DP4CYDW+04Z+7Ij9n2XjPo4xeQVxhkFHqKvgpUY7WP\nIlJPvf8KhJPKb/JE+tFi5+CIPEdkLACEa38VmJO9mC42vwiV3xRQLvKMRx9I\nhqxsMmvFyGY79eTlNBmqs0KbxQAaZtF8j3vMLk4u6jFudg5G01ymqUWYLy8F\nxAjATK1Jb9scs+rX88O1GOPvVvC+J59CxOX7LnKVw0TyVVwrOpsOP2jIfKzw\nBJod4s8zfhno/GCUN+mFh1Gg38wQJLCQZBy8Wg4xGSOVa4Iz+/z8NePuukDK\nc3+awTSfMCly1c3g22bMtm2ew5qVY0LMOxVxfgvGqHECF9yVQ7MCgtThE6NN\nrQ8ti69PFtWrezimAJs5e9nrVutEbQDCtc7Lm2ZeWcKXBbVlw/+Q5QDNAKvi\nVFaQ1x0pk5aM5+G0owP0cm7IUUMJI9VpgxcyeFdmKEzFV6Q/HaLd3VTt+7ks\nUtY+\r\n=HWGV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},"repository":{"url":"git+https://github.com/originjs/origin.js.git","type":"git"},"_npmVersion":"7.6.3","description":"A vite plugin that help you handle with global styles","directories":{},"_nodeVersion":"16.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-global-style_1.0.2_1635497197773_0.08742672182515232","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@originjs/vite-plugin-global-style","version":"1.0.3","author":{"name":"@originjs"},"license":"MulanPSL-2.0","_id":"@originjs/vite-plugin-global-style@1.0.3","maintainers":[{"name":"flyfishzy","email":"flyfish.zy@gmail.com"},{"name":"alan_scut","email":"wangpenglion@sina.cn"},{"name":"yuangongji","email":"yuangongji@foxmail.com"},{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},{"name":"jiawulin","email":"jiawulin@vip.qq.com"}],"homepage":"https://github.com/originjs/origin.js/tree/main/packages/vite-plugin-global-style","bugs":{"url":"https://github.com/originjs/origin.js/issues"},"dist":{"shasum":"73025dfb1430e1c39cbbbe32d71775f077fa7283","tarball":"https://registry.npmjs.org/@originjs/vite-plugin-global-style/-/vite-plugin-global-style-1.0.3.tgz","fileCount":11,"integrity":"sha512-kdVWNhka2SmpQkAP7yx56hVKb7TjZCJ0VmV5AzwlIS7/o5bS4vECnYnACFS3pw0ZfxDW86DZCnfbDwxAUTgHfg==","signatures":[{"sig":"MEQCIBOo4SH0FPRJwE4D83Vi5eFi/4GFstB0w+9ipsEzemZDAiADUhYuzcrI9v2ep5n+HBP30+bdO9NVGMRsNsbTe3alVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8EiBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoA+xAAk8yRHVCOAkZ+59p84ysb0K807HAQ4KCQpDe+1A7o5RmI1RlL\r\nmdreI0ClFc5oLs+1Z/jmmW/ZFiSlE3KO3+eCFynOlC/QTxI2gNSixWO7jLXy\r\nrgbrNh/B64a5shCmEW8JaG15NNi/tfwI47YE7YTOxwIU35zLM14mka5Zk9kr\r\nWJR4pUpInQS9GxK6t5mOzg3BFbyJpdimE8/p77rPM+foIf9fsGsY8PLN9+in\r\nWwJNEmmkx22KbJLvkjJQekGhrtSWO1wXaRKr2C9ZNrjncdIbjr9Aw0fRTXeF\r\nmMkVbYTF5za7Wq6tLYi2evMeoCwXLuOvb6KBJIce+qLIIpy3S+psIptruZHG\r\n8vzgP7qoyI8YygvYi2YkZf11Tc23a+mI/6zxDlngChX7mByrChao0XwjIgok\r\nhWPGCKfobrtDVqljXNQAh4UxQy5ra3agCL2m94HwnBQAYJfmmFkcrnWq25eh\r\nmCZJoMU9XWmXAVOcH5U/R2uIvNOhtRtggBBWaWvpUl8p0yJ0vU4p/Z/91uTb\r\n0TZIDPLP0yTSyoNPEqR1WRYm07AQrqIwjYcmnVZ8yX+hgS/EGmqyQFrqKelY\r\nSGoHTmuyYg+Yd3PBKhD25ib/elyxV5NaKXelXcCC/OWujq5RJycyvk//DS2X\r\nYSdpbwAwAzcTSJo7hO/AhaLxcceqp1Jv8Yk=\r\n=+/+7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","module":"dist/mjs/index.js","exports":{".":{"import":"./dist/mjs/index.js","require":"./dist/cjs/index.js"}},"scripts":{"build":"rimraf dist/ && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ../../fixup"},"_npmUser":{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},"repository":{"url":"git+https://github.com/originjs/origin.js.git","type":"git"},"_npmVersion":"7.6.3","description":"A vite plugin that help you handle with global styles","directories":{},"_nodeVersion":"16.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-global-style_1.0.3_1676691585624_0.10668721604901354","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-22T12:41:08.353Z","modified":"2026-01-04T03:34:28.594Z","1.0.0":"2021-09-22T12:41:08.523Z","1.0.1":"2021-09-24T01:45:18.008Z","1.0.2":"2021-10-29T08:46:37.892Z","1.0.3":"2023-02-18T03:39:45.821Z"},"bugs":{"url":"https://github.com/originjs/origin.js/issues"},"author":{"name":"@originjs"},"license":"MulanPSL-2.0","homepage":"https://github.com/originjs/origin.js/tree/main/packages/vite-plugin-global-style","repository":{"url":"git+https://github.com/originjs/origin.js.git","type":"git"},"description":"A vite plugin that help you handle with global styles","maintainers":[{"email":"flyfish.zy@gmail.com","name":"flyfishzy"},{"email":"wangpenglion@sina.cn","name":"alan_scut"},{"email":"yuangongji@foxmail.com","name":"yuangongji"},{"email":"peteralfredlee@gmail.com","name":"peteralfredlee"},{"email":"jiawulin@vip.qq.com","name":"jiawulin"},{"email":"1161156333@qq.com","name":"chieffo"}],"readme":"# vite-plugin-global-style\n`CSS`, `SASS`, `LESS`, `Stylus` files named starting with `global` are automatically added to the vite global style.<br/>\nFor global `CSS` styles, they will be added to the `index.html` and will affect all pages.<br/>\nFor global `SASS`/`LESS`/`Stylus` styles, they will be added to every `SASS`/`LESS` files using `@import XXXX`.\n\n## Install\n```shell\nnpm install @originjs/vite-plugin-global-style --save-dev\n```\nor\n```shell\nyarn add @originjs/vite-plugin-global-style --dev\n```\n\n## Usage\nadd `@originjs/vite-plugin-global-style` in `vite.config.js`.\n```js\nimport globalStyle from '@originjs/vite-plugin-global-style'\n\nexport default {\n    plugins: [\n        globalStyle(\n            /* options */\n        )\n    ]\n}\n```\n\n### Options\n- `sourcePath` \n\n  - Type: `string`\n  - Default: `src/assets`\n\n  The relative path of the directory in which to search for global styles.\n\n- `cssEnabled`\n\n  - Type: `boolean`\n  - Default: `true`\n\n  Whether to automatically load the `CSS` global styles.\n\n- `sassEnabled`\n\n  - Type: `boolean`\n  - Default: `true`\n\n  Whether to automatically load the `SASS` global styles.\n\n- `lessEnabled`\n\n  - Type: `boolean`\n  - Default: `true`\n\n  Whether to automatically load the `LESS` global styles.\n\n- `stylusEnabled`\n\n  - Type: `boolean`\n  - Default: `true`\n\n  Whether to automatically load the `Stylus` global styles.\n\n- `recursive`\n\n  - Type: `boolean`\n  - Default: `true`\n\n  Whether to recursively search the global styles in the `sourcePath` directory.\n","readmeFilename":"README.md"}