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 behavior in style insertion order between vue-cli2 and vue-cli3 #4038

Closed
hangaoke1 opened this issue May 23, 2019 · 1 comment
Closed

Comments

@hangaoke1
Copy link

version

  • 2.x
  • @vue/cli-service@^3.7.0

Environment info

Different behavior with same code
avatar
avatar

Steps to reproduce

vue create vue-project-v4
vue init vue-project-v3

// hello-world.vue
<template>
  <div class="test-find">
    <h1>test-find cli@3</h1>
    <x-span></x-span>
  </div>
</template>

<script>
import xSpan from './x-span.vue'
export default {
  components: {
    xSpan
  }
}
</script>
<style lang="less">
.test-span {
  color: green;
}
</style>
// x-span.vue
<template>
  <div class="x-span">
    <h1 class="test-span">hello world</h1>
  </div>
</template>
<script>
export default {
  name: 'x-span'
}
</script>

<style lang="less">
.test-span {
  color: blue;
}
</style>

What is expected?

both hello world has same color style

What is actually happening?

in v4 the hello world color is green
in v3 the hello world color is blue

@vue-bot
Copy link

vue-bot commented May 23, 2019

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

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