Comments (8)
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.
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.
@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.
@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 getoption '-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.
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.
I used MsysGit to compile on Windows, but I will redo some tests probably tonight.
from sassc.
I was able to reproduce the issue in a Windows VM with MsysGit. I will try to fix it this weekend.
from sassc.
Thanks for the latest PR, everything looks good now!
from sassc.
Related Issues (20)
- unrecognized command line option '-stdlib=libc++'
- `--version` is broken HOT 4
- SASS_PATH is ignored HOT 3
- sass_make_data_context adopts char* HOT 5
- Building jekyll site fails HOT 2
- On Windows search for libsass.so instead of libsass.dll HOT 3
- error compiling sassc on aarch64 HOT 1
- With rails 6 Failure/Error: @import "fancy-buttons"
- globbed imports? HOT 1
- New sassc 3.6.1 is broken HOT 1
- installing sassc from snap HOT 1
- Option to add contentSources to source map
- "Installing sassc 2.4.0 with native extensions" takes a long time HOT 4
- Mark SassC as deprecated
- Ship precompiled gems for Linux HOT 2
- Allow for more complex at-media query HOT 2
- makefile not working HOT 1
- Bad value (‘tigerlake’) for ‘-march=’
- There is one vulnerability that will lead to an endless loop HOT 1
- Could not execute command 'sassc‘
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sassc.