Skip to content

[@kbn/optimizer] rewrite url(ui/*) in legacy scss files#57869

Merged
spalger merged 3 commits intoelastic:masterfrom
spalger:fix/global-constant-mixins
Feb 18, 2020
Merged

[@kbn/optimizer] rewrite url(ui/*) in legacy scss files#57869
spalger merged 3 commits intoelastic:masterfrom
spalger:fix/global-constant-mixins

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Feb 18, 2020

@azasypkin realized that the global mixins for scss don't work because we're not remapping ui/* imports in the new platform optimizer (by design) but we still import a couple legacy files where that is necessary. To fix this I've added the resolve-url-loader to the @kbn/optimizer webpack config and I'm now rewriting the ui/* imports in scss files which are also in any directory named legacy.

@spalger spalger added release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.7.0 v8.0.0 labels Feb 18, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger marked this pull request as ready for review February 18, 2020 18:25
@spalger spalger requested a review from a team as a code owner February 18, 2020 18:25
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger merged commit 7cf33c1 into elastic:master Feb 18, 2020
spalger pushed a commit to spalger/kibana that referenced this pull request Feb 18, 2020
* [@kbn/optimizer] rewrite url(ui/*) in legacy scss files

* update kbn/pm dist
spalger pushed a commit that referenced this pull request Feb 19, 2020
)

* [@kbn/optimizer] rewrite url(ui/*) in legacy scss files

* update kbn/pm dist
@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Feb 19, 2020

7.x/7.7: bff96ab

@spalger spalger deleted the fix/global-constant-mixins branch February 19, 2020 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants