0.2.1 • Published 5 years ago

rollup-plugin-nano-css v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Support using Nano CSS in Rollup.

This plugin is super hacky and may break on your code.

It's most useful when you want to just use nano.sheet() and/or nano.rule() and extract a regular CSS file.

If you're having troubles with import-style imports, you may have to use the CommonJS style of importing (require). I'll put up an example eventually of what I mean.

Installation

npm i rollup-plugin-nano-css -D

Usage

import { rollup } from 'rollup';
import nanoPlugin from 'rollup-plugin-nano-css';
import nanoObj from './src/nano';

rollup({
	entry: 'main.js',
	plugins: [
		nanoPlugin({
			// Required to be specified
			nano: nanoObj,

			// Undefined by default
			include: '**/*.js',
			exclude: ['**/index.js'],
			outputFile: 'dist/css/gen-styles.css',
		})
	]
});

License

MIT © Nathan Kerr

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago