@doctorwork/postcss-autoimport

0.1.0 • Public • Published

PostCSS Autoimport Build Status

PostCSS plugin for automatically import global dependencies.

Installation

$ npm install -D postcss-autoimport

Usage

postcss([ require('postcss-autoimport')({
    paths: [
        './css/common/_variables.css',
        './css/common/functions/',
        ...
    ]
}) ])

Options

paths

Type: Array Default: []

An array of paths to directories or files which should be imported

root

Type: String Default: process.cwd()

Define the root where to resolve path.

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i @doctorwork/postcss-autoimport

Weekly Downloads

97

Version

0.1.0

License

MIT

Unpacked Size

3.66 kB

Total Files

10

Last publish

Collaborators

  • cangku
  • cundh
  • critas
  • dw-luojie
  • newset
  • lansezhaji
  • zimv
  • miaotang
  • simboltj