Business background
- use the
vue-cli3.0framework underwebstormto learnpostcss. - parameters need to be passed when using mixed macros (plug-ins are
postcss-mixins) - the variable plug-in used to pass parameters is
postcss-simple-vars
troubles encountered
-
postcss-simple-varsthe syntax for defining and using variables is the same asscsswith$. -
but the editor reports an error when defining variables and referencing variables
- define variables Times:
property name expected - quote variable Times:
a term expected
- define variables Times:
sample code
try to solve
- add
lang="postcss"to thestyletag - there is no corresponding option setting in the editor"s css code check
question
- how do I make sure it doesn"t report an error?
