0.1.0 • Published 5 years ago

@doctorwork/postcss-autoimport v0.1.0

Weekly downloads
29
License
MIT
Repository
github
Last release
5 years ago

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.