Closed
Description
Version
3.0.0-beta.10
Reproduction link
https://github.com/doublemarked/broken-lang-postcss
Steps to reproduce
- 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?
- When no "lang" is specified, PostCSS is ignored (treated as normal CSS).
- 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.