1.1.0 • Published 8 years ago

fis3-parser-css2js v1.1.0

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

fis3-parser-css2js

fis plugin to parse css into js.

install

npm i fis3-parser-css2js

config

fis.match('**.css', {
	parser: fis.plugin('css2js')
})

parse Css to a Js module

By default, fis3-parser-css2js will just parse css to a normal js file. You can use other plugin to parse it into a module, like fis3-hook-commonjs, etc.

fis.hook('commonjs');
fis.match(/\/([^\.]*)\.css/, {
	isMod: true,
	rExt: 'js',
	id: '$1.css',
	release: '$0.css',
	parser: fis.plugin('css2js')
});

options

template: the template render js content.

1.1.0

8 years ago

1.0.0

8 years ago