forked from mystiq/hydrogen-web
Do not run plugin on runtime theme
This commit is contained in:
parent
a6b6fef6d2
commit
49535807bf
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ module.exports = (opts = {}) => {
|
||||||
postcssPlugin: "postcss-url-to-variable",
|
postcssPlugin: "postcss-url-to-variable",
|
||||||
|
|
||||||
Once(root, {result}) {
|
Once(root, {result}) {
|
||||||
|
const cssFileLocation = root.source.input.from;
|
||||||
|
if (cssFileLocation.includes("type=runtime")) {
|
||||||
|
// If this is a runtime theme, don't process urls.
|
||||||
|
return;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
postcss-compile-variables should have sent the list of resolved colours down via results
|
postcss-compile-variables should have sent the list of resolved colours down via results
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue