Closed jd-solanki closed 4 years ago
I'm facing the same issue with the build. It's fine while running dev but not working with build.
Not a bug. Please use /*! rtl:begin:ignore */
.
See https://sass-lang.com/documentation/syntax/comments#in-scss
compressed
mode is automatically enabled in production
mode. So, only comments start with /*!
can be passed down to postcss.
I think we need to address this in the documentation.
Hello @sodatea Thanks so much. Using /*! rtl:begin:ignore */
solves the issue.
Version
3.11.0
Reproduction link
https://github.com/jd-0001/vue-cli-rtl-test
Environment info
Steps to reproduce
First run app in developement mode. Notice that heading have margin-right of 100px when you run "yarn serve".
But if you run "yarn build" and try to check build version, post-css's ignore comment is not counted and it's also converted for RTL version.
What is expected?
Due to / rtl:begin:ignore / margin-right should not be converted to margin-left
What is actually happening?
margin-right is get converted into margin-left