Closed FogelAI closed 7 months ago
@alexander-akait is it ok to merge this one?
@grybykm @FogelAI Sorry for delay, yes, code is fine, but we need tests for it
Hi @alexander-akait I have added the tests. Please note that the commit https://github.com/webpack-contrib/mini-css-extract-plugin/pull/1043/commits/b785fd8eff6e09073f5d79f7dae498a3a2f62c32 is the CSS version of https://github.com/webpack/webpack/pull/17497/commits/f5dab1b6e65d6c590e61207395ab2dc6caadf86a.
@FogelAI Can you accept CLA?
This PR contains a:
Motivation / Use-Case
This pull request adds webpackPrefetch and webpackPreload magic comments support of webpack at import() for css files, per this issue: https://github.com/webpack-contrib/mini-css-extract-plugin/issues/142.
It is also an alternative realization of https://github.com/webpack-contrib/mini-css-extract-plugin/pull/344 and https://github.com/webpack-contrib/mini-css-extract-plugin/pull/488 pull requests, which are not merged and are not active.
See also https://github.com/webpack/webpack/pull/7056 pull request of webpack repository.
Breaking Changes
No breaking changes.
Additional Info