-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support CSS with Sourcemap Comments #58
Comments
Option 4 might be to have ember-cli check the extension of the |
I suspect @jamesarosen original idea is good (although I haven't had time to thorough think about it). If fast-sourcemap-concat can just handle it, that would be great. If there are reasons it cannot, then yes another approach may be appropriate. |
@ef4's comment on the original fast-sourcemap-concat PR:
It seems like we have a wealth of possible approaches that all seem pretty straightforward, just disagreement among maintainers about where the problem should be solved :) |
Workaround until this is decided: ember-cli-build.js:
|
Anyone using this with Ember 3.0.0 will need to add a
|
broccoli-sourcemap-concat
defaultsmapCommentType
to'line'
, which means//
comments, which are invalid CSS. This library doesn't override that default at all. This library does passsourceMapConfig
down to theStrategy
, but there's no way to configuremapCommentType
on a per-file or per-file-type basis.Possible solutions:
*.js
withmapCommentType: 'line'
and one for*.css
withmapCommentType: 'block'
. This doesn't work too well with Ember-CLI since that assumes a singlesourcemaps
configuration.mapCommentType: (/\.css\b/.test(this.mapFile) ? 'block' : 'line')
See also #17 and ef4/broccoli-sourcemap-concat#37
The text was updated successfully, but these errors were encountered: