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

different css outputs from serve and build script #927

Closed
you06 opened this issue Mar 3, 2018 · 2 comments
Closed

different css outputs from serve and build script #927

you06 opened this issue Mar 3, 2018 · 2 comments

Comments

@you06
Copy link

you06 commented Mar 3, 2018

Version

3.0.0-beta.3

Reproduction link

https://github.com/you06/vue-cli-css-issue

Steps to reproduce

The following css is in https://github.com/you06/vue-cli-css-issue/blob/master/src/components/HelloWorld.vue#L19

background-image: linear-gradient(top, #ffffff, #2196F3);

running yarn build, check the style from chrome, webkit compatible is auto added

background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#2196F3));
background-image: linear-gradient(top, #ffffff, #2196F3);

running yarn serve, check the style from chrome, there is no webkit compatible

background-image: linear-gradient(top, #ffffff, #2196F3);

What is expected?

I think the serve and build script should get the same output.

What is actually happening?

The css output is different.

@yyx990803
Copy link
Member

Can't reproduce... the webkit prefixed version is there for me with yarn serve as well.

@you06
Copy link
Author

you06 commented Mar 4, 2018

Try yarn build, and open dist/index.html.

Sorry I made a mistake, no webkit prefixed in yarn build instead of yarn serve.

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

No branches or pull requests

2 participants