Comparing version 1.0.0-beta-13 to 1.0.0-beta-14
{ | ||
"name": "alga-css", | ||
"version": "1.0.0-beta-13", | ||
"version": "1.0.0-beta-14", | ||
"description": "Alga CSS is a scope or component oriented CSS toolkit for quickly reuse CSS components and it can be stored in .alga format file as a custom CSS component and also it has many built-in customizable CSS properties that can be directly inserted to HTML Element class", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -16,3 +16,3 @@ const postcss = require('postcss') | ||
const newColor = opts?.color || color | ||
const newImportant = opts?.important || true | ||
const newImportant = opts?.important === false ? false : true | ||
@@ -19,0 +19,0 @@ const refs = ref.trim().split(/-|:/).filter(i => i !== '') |
@@ -15,3 +15,3 @@ const postcss = require('postcss') | ||
const newColor = opts?.color || color | ||
const newImportant = opts?.important || true | ||
const newImportant = opts?.important === false ? false : true | ||
@@ -18,0 +18,0 @@ const refs = ref.trim().split(/-|:/).filter(i => i !== '') |
@@ -379,3 +379,8 @@ const chokidar = require('chokidar') | ||
newRoot.removeAll() | ||
newRoot.append(...newNodes) | ||
if(config.important) { | ||
newRoot.append(...newNodes) | ||
} else { | ||
const newLayer = layer(newNodes, name, rule.source) | ||
newRoot.replaceWith(newLayer) | ||
} | ||
newPackNodes.push(newRoot) | ||
@@ -382,0 +387,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
256614
3426