# @estack/postcss-import

> resolves the `@import` and creates the `tree` property in the result object, which defines the imports

Latest version **1.0.0** (published 2020-08-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install @estack/postcss-import
pnpm add @estack/postcss-import
yarn add @estack/postcss-import
bun add @estack/postcss-import
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-08-31 |
| First published | 2020-08-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 26.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | UpperCod |
| Maintainers | uppercod |

## Links

- npm: https://www.npmjs.com/package/@estack/postcss-import
- Repository: https://github.com/UpperCod/postcss-import
- Homepage: https://github.com/UpperCod/postcss-import#readme
- Issues: https://github.com/UpperCod/postcss-import/issues
- npm.io page: https://npm.io/package/@estack/postcss-import

## Dependencies (4)

- [resolve-css](https://npm.io/package/resolve-css.md) ^1.0.3
- [@uppercod/cache](https://npm.io/package/@uppercod/cache.md) ^1.0.0
- [@uppercod/request](https://npm.io/package/@uppercod/request.md) ^1.1.1
- [@uppercod/imported](https://npm.io/package/@uppercod/imported.md) ^1.2.0

## Recent versions

- 1.0.0 (latest) — 2020-08-31

## README

# @estack/postcss-import

resolves the `@import` and creates the `tree` property in the result object, which defines the imports.

Differences by [postcss-import](https://github.com/postcss/postcss-import):

1.  This plugin can belong to the bundle.
2.  This plugin imports css from url.
3.  The resolution are local so you must point to the css file if you import a package you must associate the physical directory of the css.

## Install

```
npm install @estack/postcss-import
```

## usage

```js
import postcss from "postcss";
import pluginImport from "@estack/postcss-import";

postcss([pluginImport()]).process(`@import "http://unpkg.com/example.css";`, {
    from: "example.css",
});
```

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