Skip to content

v0.5.15

Choose a tag to compare

@Machy8 Machy8 released this 09 Jan 19:46
· 194 commits to master since this release

External variables feature

When some external variables are defined (for example CSS variables) it makes no sense to define or import them into Stylify. Instead you can use mark them as external. More info in docs.

const stylifyConfig = {
 compiler: {
  externalVariables: [
     // Simple string check
     'test',
     // Flexible function check. Return true if matched. Otherwise return undefined or nothing.
     (variable) => {
       if (variable.startsWith('md-') return true;
     }
  ]
 }
}

Full Changelog: v0.5.14...v0.5.15