Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percent values in @keyframes in CSS are incorrect only at build time. #6076

Closed
aoisensi opened this issue Nov 21, 2020 · 2 comments
Closed
Labels

Comments

@aoisensi
Copy link

aoisensi commented Nov 21, 2020

Version

4.5.9

Reproduction link

aoisensi/bug-vue-cli-keyframe-percent@cfbf0f5

Environment info

  System:
    OS: Linux 5.7 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
  Binaries:
    Node: 15.2.1 - /usr/bin/node
    Yarn: 1.22.10 - /usr/bin/yarn
    npm: 6.14.8 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmGlobalPackages:
    @vue/cli: 4.5.9

Steps to reproduce

$ vue create app
Select "Default (Vue 3 Preview)".
Edit .vue file.
$ yarn serve
Success fade-in.
$ yarn build
No fade-in!!

What is expected?

Successful fade-in with built data.

What is actually happening?

  to {
    opacity: 100%;
  }

will be

  to {
    opacity: 1%;
  }
@fangbinwei
Copy link
Collaborator

fangbinwei commented Nov 22, 2020

check this comment cssnano/cssnano#829 (comment)
This problem will be fixed in cssnano next release. CSS will be minified in production by cssnano.

@aoisensi
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants