fis-postprocessor-rjy-postcss

0.1.1 • Public • Published

fis-postprocessor-rjy-postcss

基于fis的postcss插件,不自带任何postcss相关插件,根据需要自行安装。

依赖插件 postcss

npm i postcss -g

安装

npm i fis-postprocessor-rjy-postcss -g

配置

fis.config.set('settings.postprocessor.rjy-postcss', {
    addPlugins: function () {
        var plugins = [];

        //参考:https://github.com/postcss/autoprefixer
        var pl = require('autoprefixer');
        pl({ browsers: ['> 3% in CN'] });

        plugins.push(pl);

        return plugins;
    }
});

使用

fis.match('*.{css,less}', {
    postprocessor: fis.plugin('rjy-postcss')
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.10
0.1.00

Package Sidebar

Install

npm i fis-postprocessor-rjy-postcss

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ken1987