Preprocess CSS4 syntax using cssnext
Files with the next.css
extension will be compiled with package.
You can also manually @import
files named xxx.import.next.css
as
these will be excluded from the build pipeline.
kit:cssnext
exports a global CssnextCompiler
class which enables you to build extension packages that depend on this package.
// Meteor 1.2.x
/**
* Transpile CSS4 syntax to CSS3 with cssnext
* @param {Object} [cssnextOptions] cssnext compile options object
*/
Plugin.registerCompiler({
filenames: ['xxx.next.css'],
archMatching: 'web',
}, function () { return new CssnextCompiler(cssnextOptions) } );
meteor add kit:cssnext
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request