Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

omitSourceMapUrl not working? #546

Closed
temega opened this issue Nov 19, 2014 · 8 comments
Closed

omitSourceMapUrl not working? #546

temega opened this issue Nov 19, 2014 · 8 comments

Comments

@temega
Copy link
Contributor

temega commented Nov 19, 2014

Can't seem to get omitSourceMapUrl to work, never managed to get the url in my .css file while .css.map does get created.

@1.2.2

var runLibsass = function () {
    var stats = {};
    sass.renderFile({
        stats: stats,
        success: function (css) {
            console.log(' > > > > > libsass success', 'strapless.css build success.');
        },
        error: function(error) {
            console.log(' ! ! ! ! ! libsass error', error);
        },
        file: 'sass/main.scss',
        outFile: 'main.css',
        sourceMap: true,
        sourceComment: 'map',
        omitSourceMapUrl: true,
    });
};
@am11
Copy link
Contributor

am11 commented Nov 19, 2014

I can reproduce this issue. This is the issue with omitSourceMapUrl. It happens because our outFile resolving method has a bug, which I will fix for v2.

For workaround, please set the absolute URL in outFile.

A side note: there is no option called sourceComment as in singular, the option sourceComments is Boolean flag, which adds the debug information to the CSS file (it doesn't have any influence on map file), it's a separate feature from couple of releases. So, in your case, if you don't want debug comments in your CSS and simple source-maps, you can just drop sourceComment: 'map', line.

@am11 am11 added the v2 label Nov 19, 2014
am11 added a commit to am11/node-sass that referenced this issue Nov 19, 2014
@am11
Copy link
Contributor

am11 commented Nov 19, 2014

This is fixed by d4fa18b via #543.

@am11 am11 closed this as completed Nov 19, 2014
@andrew
Copy link
Contributor

andrew commented Nov 19, 2014

@am11 you should really only close these issues after the PR has been merged otherwise it confuses people, you can do this automatically by saying "fixes #546" in the PR description.

am11 added a commit to am11/node-sass that referenced this issue Nov 19, 2014
@am11
Copy link
Contributor

am11 commented Nov 19, 2014

@andrew, alrighty. I thought the v2 label says it all. 😄

@temega
Copy link
Contributor Author

temega commented Nov 20, 2014

@am11 Still not working.

First tried an absolute path, didn't work. Then updated to 1.2.3, used relative path, didn't work.

I'm on Windows 7 by the way.

@am11
Copy link
Contributor

am11 commented Nov 20, 2014

@temega, this is added as a v2 feature, which means; it will be made available with node-sass version 2, which is unreleased at the moment.

v1.2.3 did not obtain any new feature. It only has the rebuilt libsass binary.

I'm on Windows 7 by the way.

This should not affect how omitSourceMapUrl behaves.

@michaek
Copy link

michaek commented Dec 1, 2014

I'm with @andrew on letting GitHub do the closing by putting "fixes" in the PR description and leaving this one open until its merged.

@am11 am11 reopened this Dec 1, 2014
@am11
Copy link
Contributor

am11 commented Dec 1, 2014

@michaek, just reopened it. I was under the impression that libsass was near to get a next release. But apparently, they have some issues to tackle before vNext. Meanwhile, we can add more features.

@am11 am11 closed this as completed in 187cfde Dec 18, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants