Currently the stylesheet compiler does not handle @import itself.
Other preprocessors (like less-loader) can transform it properly. However, if use without preprocessors, the @import will be passed to css-loader which inlines the imported content directly, missing proper transform of rpx and class prefixes.
Currently the stylesheet compiler does not handle
@import
itself.Other preprocessors (like
less-loader
) can transform it properly. However, if use without preprocessors, the@import
will be passed tocss-loader
which inlines the imported content directly, missing proper transform ofrpx
and class prefixes.