Skip to content

3.0.0-beta.10 breaks postcss #1285

Closed
Closed
@doublemarked

Description

@doublemarked

Version

3.0.0-beta.10

Reproduction link

https://github.com/doublemarked/broken-lang-postcss

Steps to reproduce

  1. Use postcss in a style block within a .vue file, with or without lang="postcss". For example,
<style>
  .container {
     color: black;
     & .inner {
        color: red;
     }
  }
</style>
<!-- or -->
<style lang="postcss">
  .container {
     color: black;
     & .inner {
        color: red;
     }
  }
</style>

What is expected?

PostCSS should be supported out of the box, as it was with the previous version. The documentation still implies that it's enabled by default.

What is actually happening?

  1. When no "lang" is specified, PostCSS is ignored (treated as normal CSS).
  2. With lang="postcss" it's breaking the build with an error such as,
 error  in ./src/App.vue?vue&type=style&index=0&lang=postcss

Module parse failed: Unexpected character '#' (13:0)
You may need an appropriate loader to handle this file type.
| 
| 
| #app {
...

This worked fine until I upgraded from beta 9 to beta 10.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions