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

.vue Components with empty lang="scss" style tag crash gulp on build #2

Open
VanceCole opened this issue Mar 31, 2021 · 1 comment
Open

Comments

@VanceCole
Copy link

Should reproduce with following component

<template>
  <div class="example">
    test
  </div>
</template>

<script>
export default {
  data() {
    
  }
}
</script>

<style lang="scss">
</style>
@kakaroto
Copy link
Contributor

kakaroto commented Apr 2, 2021

Yeah, gulp also fails if the file is empty, and the scoped portion doesn't work, and if we add a style section, then we can't use a beforeCreate hook anymore in the vue component.
I blame it all on the vue component module for gulp, which is old, outdated and sucks (but just does the job), and is one of the reasons I want to eventually investigate the use of webpack. Gulp does the job to get us started, but it has some quirks that become more apparent as we require more complex things.

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