1.0.0 • Published 4 years ago
@estack/postcss-import v1.0.0
@estack/postcss-import
resolves the @import
and creates the tree
property in the result object, which defines the imports.
Differences by postcss-import:
- This plugin can belong to the bundle.
- This plugin imports css from url.
- 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",
});
1.0.0
4 years ago