Giter Club home page Giter Club logo

Comments (16)

ogbaoghene avatar ogbaoghene commented on July 20, 2024

I ran into this problem too, discovered here that you have to use the css stylesheet your Sass compiles into as a target if not you get an empty style.css.

from kss-node.

jamesarosen avatar jamesarosen commented on July 20, 2024

@TenEsan do you use sass to compile .scss -> .css first? Because I don't have any .css files until after I run kss-node, but kss-node itself complains if you tell it to use a stylesheet that doesn't exist yet.

from kss-node.

ogbaoghene avatar ogbaoghene commented on July 20, 2024

Yes, I do. Then I parse the compiled screen.css with kss-node using --css.

from kss-node.

lancedikson avatar lancedikson commented on July 20, 2024

I have the same problem. MacOS X 10.9, node 0.10.26. KSS version is 0.3.7.

from kss-node.

lancedikson avatar lancedikson commented on July 20, 2024

I think that request #58 will resolve this problem

from kss-node.

ogbaoghene avatar ogbaoghene commented on July 20, 2024

I started using GruntJs to run tasks, now I run the grunt styleguide task with my .scss file as the target. As usual it properly parses all the scss comments but outputs an empty style.css. So after that task I run the grunt sass task on my scss with the the style.css as the destination.

from kss-node.

lancedikson avatar lancedikson commented on July 20, 2024

@ogbaoghene grunt-kss using node-sass as a compiler for Sass and SCSS, but node-kss using sass. My recommendation is if you can, use grunt-kss on your project.

from kss-node.

ogbaoghene avatar ogbaoghene commented on July 20, 2024

@lancedikson I currently use grunt-styleguide, will give grunt-kss a try. Thanks.

from kss-node.

lancedikson avatar lancedikson commented on July 20, 2024

@ogbaoghene do you have the same problem with grunt-styleguide? This bug should be repeat with it, because it depends of kss-node.

from kss-node.

ogbaoghene avatar ogbaoghene commented on July 20, 2024

@lancedikson Yes, I do experience the same issue. As a workaround, I run the grunt-sass task after the grunt-styleguide task, recompiling my CSS with the style.css file as the destination. So I run two tasks, the first to generate my KSS styleguide and the second for the missing styles.

from kss-node.

lancedikson avatar lancedikson commented on July 20, 2024

@ogbaoghene well, I think grunt-kss will be more comfortable decision, than that you have now. Do you have that issue #68 ?

from kss-node.

JohnAlbin avatar JohnAlbin commented on July 20, 2024

This will be fixed by #58. But I'm going to rip out all stylesheet compilation from the 1.0.0 version 2.0.0 version. [edit: the 1.0.0 will be a straight bugfix of the 0.3.7 version.] There's simply too many different workflows to support them all. I can think of 8 different ways of compiling Sass off the top of my head.

from kss-node.

indieisaconcept avatar indieisaconcept commented on July 20, 2024

@JohnAlbin I think pulling compilation is a step in the right direction.

from kss-node.

JohnAlbin avatar JohnAlbin commented on July 20, 2024

I just fixed this #87. Now when you use --sass [file] -l [include-path], it should generate a stylesheet at public/style.css and include it. I haven't tested it thoroughly because I don't compile my Sass source with kss-node. Please re-open (with additional details) if its still not working properly.

from kss-node.

ogbaoghene avatar ogbaoghene commented on July 20, 2024

@JohnAlbin just tested, doesn't fix it, kindly reopen. Thanks for trying though.

from kss-node.

dotherightthing avatar dotherightthing commented on July 20, 2024

@JohnAlbin I also agree that compilation should be separate, this was something that tripped me up when I started using kss-node.

from kss-node.

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.