1.1.7 • Published 4 months ago
css-import-generator v1.1.7
css-import-generator
Recursively scans every scss
, css
, sass
files under css-root-path
and generates single file at destination
which contains all import statements.
- Available for both Windows(win32) and MacOS(posix) environment
ScreenShots
Below file is auto-generated. I'm using it for big project 😀
Usage
Install the package
yarn add css-import-generator # or npm i css-import-generator
Add below to your package.json
"css-import-generator": { "css-root":"src/styles/css", "destination":"src/css-imports.js", }
css-root
is necessary.If not given, it won't work.
destination
field is optional.If not given, generated file will be at under
{css-root}/index.js
Run below code at project root path
npx css-import-generator
Further Requirements?
If you need any extra functionality, please contact me > dev.kyungho@gmail.com