# postcss-global-import-sync

> Post Css plugin for global import css.

Latest version **1.0.1** (published 2017-11-22) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install postcss-global-import-sync
pnpm add postcss-global-import-sync
yarn add postcss-global-import-sync
bun add postcss-global-import-sync
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-11-22 |
| First published | 2017-11-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | anru |
| Keywords | Postcss |

## Links

- npm: https://www.npmjs.com/package/postcss-global-import-sync
- Repository: https://github.com/anru/postcss-global-import
- Homepage: https://github.com/anru/postcss-global-import#readme
- Issues: https://github.com/anru/postcss-global-import/issues
- npm.io page: https://npm.io/package/postcss-global-import-sync

## Dependencies (2)

- [postcss](https://npm.io/package/postcss.md) ^6.0.2
- [resolve](https://npm.io/package/resolve.md) ^1.1.7

## Recent versions

- 1.0.1 (latest) — 2017-11-22

## README

# [Postcss](https://github.com/postcss/postcss) global import.

[![npm package][npm-badge]][npm]

[npm-badge]: https://img.shields.io/npm/v/postcss-global-import.svg?style=flat-square
[npm]: https://www.npmjs.org/package/postcss-global-import

## Installation

```
npm install --save postcss-global-import
```

## Example

```css
@global-import './some-file.css'
/* Some Css */
```

## Options

### sync

In case of sync enabled this plugin will be work synchronously. It's useful in case with usage
`css-modules-require-hook` hook, which doesn't support async postcss plugins.

## Webpack config example
```js
const globalImport = require('postcss-global-import');

module.exports = {
  module: {
      loaders: [
          {
              test:   /\.css$/,
              loader: "style-loader!css-loader!postcss-loader"
          }
      ]
  },
  postcss: [
    globalImport()
  ]
}
```

---
_Source: https://npm.io/package/postcss-global-import-sync · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
