1.0.13 • Published 5 days ago

@csstools/postcss-bundler v1.0.13

Weekly downloads
-
License
MIT-0
Repository
github
Last release
5 days ago

PostCSS Bundler

npm install @csstools/postcss-bundler --save-dev

PostCSS Bundler bundles your CSS.

This plugin pack contains :

examples/example.css :

@import url("imports/basic.css");
@import url("node_modules:open-props/red");

examples/imports/basic.css:

.foo {
	background: url('../../images/green.png');
}

when bundled :

/* imports/basic.css */
.foo {
	background: url("../images/green.png");
}
/* node_modules:open-props/red */
:where(html){--red-0:#fff5f5;--red-1:#ffe3e3;--red-2:#ffc9c9;--red-3:#ffa8a8;--red-4:#ff8787;--red-5:#ff6b6b;--red-6:#fa5252;--red-7:#f03e3e;--red-8:#e03131;--red-9:#c92a2a;--red-10:#b02525;--red-11:#962020;--red-12:#7d1a1a}

Usage

Add PostCSS Bundler to your project:

npm install postcss @csstools/postcss-bundler --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssBundler = require('@csstools/postcss-bundler');

postcss([
	postcssBundler(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

PostCSS Bundler runs in all Node environments, with special instructions for:

postcss-import

postcss-import is also a CSS bundler and parts of PostCSS Bundler are based on it.
While creating this plugin we also submitted patches to postcss-import where possible.

PostCSS Bundler is tuned differently and lacks configuration options that are present in postcss-import.

PostCSS Bundler is intended to just work and to be a drop-in replacement for native CSS @import statements.

1.0.13

5 days ago

1.0.12

5 days ago

1.0.11

2 months ago

1.0.10

3 months ago

1.0.9

4 months ago

1.0.8

5 months ago

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

9 months ago

1.0.0

9 months ago

0.1.0-alpha.6

9 months ago

0.1.0-alpha.5

9 months ago

0.1.0-alpha.4

9 months ago

0.1.0-alpha.3

9 months ago

0.1.0-alpha.2

9 months ago

0.1.0-alpha.1

9 months ago

0.1.0-alpha.0

9 months ago