Skip to content

Conversation

hmsk
Copy link
Contributor

@hmsk hmsk commented Feb 20, 2018

Other than Sass/SCSS, we may face parsing errors with cssExtract.extractClasses(cssCode); in processStyle (stylePart, filePath) if you give code which is invalid as pure CSS. css module can't parse.

like

.testPostcCSS {
  body {
    @media screen {
      background-color: red;
    }
  }
}

This syntax is allowed for almost CSS preprocessors. Anyway, some other syntaxes may make an exception with css module. So, I just added exts to ignore compilation.

@eddyerburgh
Copy link
Member

Thanks 😀

@eddyerburgh eddyerburgh merged commit c26db3b into vuejs:master Feb 20, 2018
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

Successfully merging this pull request may close these issues.

2 participants