ember-cli / ember-cli/broccoli-asset-rev

css sourceMappingURL is broken

Open
#65 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
86
Forks
79
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use this plugin with CSS source maps, but I can't get it to work in any fashion because this plugin doesn't understand the double extension. With this config:

``` js
tree = assetRev(tree, {
extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map'],
exclude: ['fonts/169929'],
replaceExtensions: ['html', 'js', 'css'],
});
```

I get this css file:

``` css
/*# sourceMappingURL=main-aafff1edf19e012de9347224d8cd4856.css-e997028ad01268b4cda33c1c4ce89b36.map */
```

but the source-map is renamed to `main.css-e997028ad01268b4cda33c1c4ce89b36.map`

Other combinations have similar results - even ignoring `css.map` doesn't help.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.