michaelolof / vue-literal-compiler

A Vue Compiler that allows you compile your string literals to render functions at build time and write components in SFC paradigm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make style tags optional

michaelolof opened this issue · comments

You shouldn't have to declare style tags if you don't want to.
When using optional style tags, the compiler assumes you're writing css and wraps everything between the backtildes in one style tag.

Current Way:

/** @VueLiteralCompiler Styles */
const styles = `
  <style>
    p {
      font-size: 1.2em;
    }
  </style>
`;

Proposed:

/** @VueLiteralCompiler Styles */
const styles = `
  p {
    font-size: 1.2em;
  }
`;