pleeease icon indicating copy to clipboard operation
pleeease copied to clipboard

Option to get sourcemaps not inlined

Open iamvdo opened this issue 10 years ago • 2 comments

As for now, if you want sourcemaps not inlined in CSS, you need to use:

{
   "sourcemaps": {
        "map": {
            "inline": false
        }
    }
}

as the PostCSS specify it. I want to add an alias as string, but can't find a simple and unambiguous word. For example like:

"external"
"separate"
"outside"
"out"

We'll use it as:

{
   "sourcemaps": "..."
}

or even:

{
   "sourcemaps": {
        "map": "..."
    }
}

Any opinion someone ?

iamvdo avatar Feb 27 '15 22:02 iamvdo

honestly, I like inline: false ^^ for an alias i would go for "reference or external" as you are referencing the external sourcemap ;)

nexflo avatar Oct 06 '15 12:10 nexflo

You could also follow the Sass way by enabling sourcemap by default :smile:

I would treat the option in this way:

  • sourcemaps: none to disable source maps
  • sourcemaps: "../maps" to write external source map files
  • sourcemaps: inline to embed source maps in source files

I hope that it will help you. :cat2:

7studio avatar Oct 07 '15 16:10 7studio