0.4.0 • Published 6 years ago

@brikcss/stakcss-bundler-postcss v0.4.0

Weekly downloads
1
License
-
Repository
github
Last release
6 years ago

Stakcss PostCSS Bundler

Stakcss Bundler that compiles PostCSS.

Install

npm install @brikcss/stakcss @brikcss/stakcss-bundler-postcss --save-dev

Usage

  • Node:

    	```js
    	stak({
    		bundlers: ['@brikcss/stakcss-bundler-postcss']
    	});
    	```
    
    	or with options and data:
    
    	```js
    	stak({
    		bundlers: [{
    			run: '@brikcss/stakcss-bundler-postcss',
    			options: {}
    		}]
    	});
    	```
  • CLI:

    	```bash
    	stak <source> [--output=<path>] --bundlers=@brikcss/stakcss-bundler-postcss
    	```
    
    	or with a config file:
    
    	```bash
    	stak --config=<path to config>
    	```

Bundler Configuration

Note: From a CLI, you must use a config file (--config=<path>) to configure the bundler.

  • bundler.options {Object} Options passed to PostCSS. The default options are:

    	```js
    	{
    		from: typeof config.source === 'string' ? config.source : '',
    		to: config.output,
    		map: config.isProd
    			? false
    			: {
    					inline: false,
    					prev: config.sourceMap ? config.sourceMap : false
    			  }
    	}
    	```
  • bundler.plugins {Array} Array of PostCSS plugins to use.

See Stakcss for more on using Stakcss bundlers.

0.4.0

6 years ago

0.3.0

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago