Giter Club home page Giter Club logo

fis-postprocessor-postcss's People

Contributors

jiangyuan avatar

Stargazers

 avatar

Watchers

 avatar

fis-postprocessor-postcss's Issues

autoprefixer 默认是关闭的

fis-postprocessor-postcss 在安装成功后,默认情况下不会自动补全前缀,需要在添加下面的配置才可以

settings: {
    postprocessor: {
        postcss: {
            autoprefixer: false, // 默认 true
            cssnext: false, // 默认 false
            customPlugin: function(plugins) {   // 参数 plugins 是内置插件
                plugins = plugins.push(require('postcss-border'));
                return plugins; // 返回新的插件列表
            }
        }
    }
}

jello 环境下无法匹配正确的图片路径

文件目录结构如下:

-- page
-- static
-- widget
    -- header
        -- images
            -- xx.jpg
        -- index.less
        -- index.vm
-- fis-conf.js

fis-conf.js 文件大致内容如下:

........

fis.config.merge({
    roadmap: {
        path: [
            {
                reg: /.*?([^\/]*(?:jpg|png|gif|jpeg))/i,
                release: '/static/images/$1'
            }
        ]
    },
    modules: {
        postprocessor : {
            // 安装 fis-postprocessor-postcss
            sass: 'postcss',
            scss: 'postcss',
            css: 'postcss'
        }
    }
});

........

/widget/header/index.less 内容大致如下:

div {
    background-image: url('images/xx.jpg');
}

然后,在jello release后,图片地址发布位置正常,但fis-postprocessor-postcss解析图片地址不正确,然后导致失败。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.