PostCSS plugin for automatically import global dependencies.
$ npm install -D postcss postcss-autoimport
$ yarn add -D postcss postcss-autoimport
postcss([ require('postcss-autoimport')({
paths: [
'./css/common/_variables.css',
'./css/common/functions/',
...
]
}) ])
Type: Array
Default: []
An array of paths to directories or files which should be imported
Type: String
Default: process.cwd()
Define the root where to resolve path.
See PostCSS docs for examples for your environment.