1.0.0 • Published 4 years ago

@estack/postcss-import v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

@estack/postcss-import

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

Differences by 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

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

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