egoist / vuepack

:package: A modern starter which uses Vue 2, Vuex, Vue-router and Webpack 2 (and even Electron)
http://vuepack.surge.sh
MIT License
2.43k stars 202 forks source link

Error with SugarSS and <style scoped lang="postcss"> #132

Open simonwjackson opened 7 years ago

simonwjackson commented 7 years ago

I am trying to get syntax highlighting (Atom) while using SugarSS

This compiles correctly but syntax highlighting doesn't work:

<style>
.className
  opacity: 0
</style>

This show the correct syntax highlighting, but fails to compile:

<style lang="postcss">
.className
  opacity: 0
</style>
Module build failed: Syntax Error

(46:12) Missed semicolon
egoist commented 7 years ago

We don't support lang="postcss" since the default lang is postcss, we should support that though. You can manually update ./build/utils.js for now.