@node-minify/crass
Advanced tools
Comparing version 8.0.2-beta.0 to 8.0.3-beta.0
@@ -17,2 +17,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -27,4 +31,4 @@ mod | ||
const contentMinified = import_crass.default.parse(content).optimize().toString(); | ||
if (settings && !settings.content) { | ||
import_utils.utils.writeFile({ file: settings.output, content: contentMinified, index }); | ||
if (settings && !settings.content && settings.output) { | ||
settings.output && import_utils.utils.writeFile({ file: settings.output, content: contentMinified, index }); | ||
} | ||
@@ -31,0 +35,0 @@ if (callback) { |
{ | ||
"name": "@node-minify/crass", | ||
"version": "8.0.2-beta.0", | ||
"version": "8.0.3-beta.0", | ||
"description": "crass plugin for @node-minify", | ||
@@ -15,3 +15,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -45,13 +45,13 @@ "directories": { | ||
"clean": "pnpm dlx rimraf dist", | ||
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", | ||
"prepublishOnly": "npm run build" | ||
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", | ||
"prepublishOnly": "pnpm build" | ||
}, | ||
"dependencies": { | ||
"@node-minify/utils": "8.0.2-beta.0", | ||
"@node-minify/utils": "8.0.3-beta.0", | ||
"crass": "0.12.3" | ||
}, | ||
"devDependencies": { | ||
"@node-minify/types": "8.0.2-beta.0" | ||
"@node-minify/types": "8.0.3-beta.0" | ||
}, | ||
"gitHead": "bd2fe186257749fcb9bf7a9ff1ce61fb922c4ade" | ||
"gitHead": "f79e146eed24ca117756cf029eb5005631f12892" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
11621
9
126
+ Added@node-minify/utils@8.0.3-beta.0(transitive)
- Removed@node-minify/utils@8.0.2-beta.0(transitive)