Giter Club home page Giter Club logo

Comments (5)

vhlongon avatar vhlongon commented on August 29, 2024

Maybe the plugin was not meant to be used that way, but it would be great if there was the possibility to have a output CSS file containing several @styleguide declarations that would be rendered as 'blocks', one for each component.

from postcss-style-guide.

vhlongon avatar vhlongon commented on August 29, 2024

PostCSS returns three rules even though there are only 2 comment block on analyser.js

while (rule) {

            if (rule.type === 'rule' || rule.type === 'atrule') {
                rules.push(rule.toString());
            }

            // log 3 rule sets, 1 containing the css declaration for component, 1 for component2 
            // and a third one containing both of them
            console.log(rule.type);

            rule = rule.next();
        }

I am not familiar with how postcss works, but the problem is there somewhere.

from postcss-style-guide.

matype avatar matype commented on August 29, 2024

@vhlongon Thank you for your report.

from postcss-style-guide.

matype avatar matype commented on August 29, 2024

Just released v0.11.1. Please update postcss-style-guide and confirm again. If there is still a bug, re-open this issue.

Thanks 👍

from postcss-style-guide.

vhlongon avatar vhlongon commented on August 29, 2024

works ace, dude! Thanks a bunch!

from postcss-style-guide.

Related Issues (20)

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.