css-import-generator

1.1.7 • Public • Published

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 😀

result-screenshot

Usage

  1. Install the package

    yarn add css-import-generator
    # or
    npm i css-import-generator
  2. 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

  3. 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

Readme

Keywords

Package Sidebar

Install

npm i css-import-generator

Weekly Downloads

4

Version

1.1.7

License

ISC

Unpacked Size

72.9 kB

Total Files

19

Last publish

Collaborators

  • auaicn