Don't derive variables for runtime theme
This commit is contained in:
parent
2015fa2d7a
commit
4350d2f264
1 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,11 @@ module.exports = (opts = {}) => {
|
||||||
postcssPlugin: "postcss-compile-variables",
|
postcssPlugin: "postcss-compile-variables",
|
||||||
|
|
||||||
Once(root, {Rule, Declaration, result}) {
|
Once(root, {Rule, Declaration, result}) {
|
||||||
|
const cssFileLocation = root.source.input.from;
|
||||||
|
if (cssFileLocation.includes("type=runtime")) {
|
||||||
|
// If this is a runtime theme, don't derive variables.
|
||||||
|
return;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
Go through the CSS file once to extract all aliases and base variables.
|
Go through the CSS file once to extract all aliases and base variables.
|
||||||
We use these when resolving derived variables later.
|
We use these when resolving derived variables later.
|
||||||
|
|
Reference in a new issue