feat: Make css-tree the default parser

This commit is contained in:
Darin Dimitrov
2019-12-10 17:16:20 +02:00
parent c5b7f439f2
commit ab4c389ede

View File

@ -53,12 +53,12 @@ function ensureCssAnimationParserModule() {
}
}
let parser: "rework" | "nativescript" | "css-tree" = "rework";
let parser: "rework" | "nativescript" | "css-tree" = "css-tree";
try {
const appConfig = require("~/package.json");
if (appConfig) {
if (appConfig.cssParser === "css-tree") {
parser = "css-tree";
if (appConfig.cssParser === "rework") {
parser = "rework";
} else if (appConfig.cssParser === "nativescript") {
parser = "nativescript";
}