Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set sourcemaps directory. #92

Open
nicolo-ribaudo opened this issue Feb 12, 2015 · 2 comments
Open

Set sourcemaps directory. #92

nicolo-ribaudo opened this issue Feb 12, 2015 · 2 comments
Assignees
Milestone

Comments

@nicolo-ribaudo
Copy link
Contributor

(Maybe duplicate of #61?)

The location of source maps is bound by the location of css files.
If I want to save source maps and css output in two different folders, I have to do something like:

{
    "path": {
        "sass/*.scss": {
            "sass.options": {
                "outputDir": "../css/",
            }
        },
        "sass/file-1.scss": {
            "sourceMap": "../maps/file-1.css.map"
        },
        "sass/file-2.scss": {
            "sourceMap": "../maps/file-2.css.map"
        },
        "sass/file-3.scss": {
            "sourceMap": "../maps/file-3.css.map"
        }
    }
}

(The project tree is

|
|-- .brackets.json
|-- sass
  |-- file-1.scss
  |-- file-2.scss
  |-- file-3.scss
|-- css
  |-- file-1.css
  |-- file-2.css
  |-- file-3.css
|-- maps
  |-- file-1.css.map
  |-- file-2.css.map
  |-- file-3.css.map

)

Would be nice to set the folder only once:

{
    "path": {
        "sass/*.scss": {
            "sass.options": {
                "outputDIr": "../css/",
                "sourceMapDir": "../maps/"
            }
        }
    }
}
@nicolo-ribaudo nicolo-ribaudo changed the title Set an output directory for sourcemaps. Set sourcemaps directory. Feb 12, 2015
@jasonsanjose jasonsanjose self-assigned this Mar 2, 2015
@jasonsanjose jasonsanjose added this to the v2.0 milestone Mar 2, 2015
@jasonsanjose
Copy link
Owner

In PR #100 the sourceMap pref can be either true or a relative path. Try it out and let me know if it works for you.

@jasonsanjose
Copy link
Owner

So...I realize my previous suggestion isn't quite the same as supporting a sourceMapDir. Removing from v2 milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants