wechat-miniprogram / glass-easel

Multiple-backend component-based JavaScript framework
MIT License
231 stars 34 forks source link

The `@import` does not work well without preprocessor (`less`, etc) #113

Open LastLeaf opened 11 months ago

LastLeaf commented 11 months ago

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.

LastLeaf commented 6 months ago

Added a compiler feature to convert @import to a comment (for further compilation). However, this problem is still not solved.