Giter Club home page Giter Club logo

Comments (8)

emagnier avatar emagnier commented on August 26, 2024

FYI I found the implementation of the line-number and the debug-info options here: sass/libsass@4d44a4d with also some bad namings in the code.

from sassc.

cbmd avatar cbmd commented on August 26, 2024

What i'm doing wrong with sourcemaps?
I'm using -g options and result returned equals to result that returned from compilation without options? And not creating sourcemaps file in directory
eg.:
sassc -g styles.scss > styles.css equals to sassc styles.scss > styles.css

Thank you in advice!

from sassc.

 avatar commented on August 26, 2024

@cbmd Source map generation currently only works if you specify an output file with the -o flag. sassc -g -o styles.css styles.scss should generate a source map. If you do not specifiy an output path, setting the sourceMappingURL directive does not make much sense, as it is relative to the output path.

@emagnier As the -g options was already documented as source map flag, I've coupled the source map implementation to it. But I agree we should review the API and keep it as close as possible to the Ruby version.

from sassc.

emagnier avatar emagnier commented on August 26, 2024

@svnieuw: Thanks a lot for your PR, it's much clearer now :-)

Also I played a bit with the latest version and found some minor issues (tested only on Windows):

  • The -l doesn't seem to work: I get option '-l' is ambiguous. However --line-numbers and --line-comments are working fine.
  • Long arguments are also working with a simple dash, like -help. I don't think they should.

from sassc.

 avatar commented on August 26, 2024

I could replace the getopt_long_only() call with getopt_long(). This will reject single dash long options, but -help would still print the help message. It even did before my change because only the first character is parsed, the help message is printed and the program exits.

The -l flag seems to work fine for me on OS X and Linux. Which compiler did you use to compile sassc on Windows?

from sassc.

emagnier avatar emagnier commented on August 26, 2024

I used MsysGit to compile on Windows, but I will redo some tests probably tonight.

from sassc.

 avatar commented on August 26, 2024

I was able to reproduce the issue in a Windows VM with MsysGit. I will try to fix it this weekend.

from sassc.

emagnier avatar emagnier commented on August 26, 2024

Thanks for the latest PR, everything looks good now!

from sassc.

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.