@unizap/unicss 1.1.31 → 1.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +5 -1
- package/dist/index.js +68 -68
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const generateCSS = require("../dist/index.js");
|
|
|
7
7
|
const args = process.argv.slice(2);
|
|
8
8
|
let outFile = "dist/unicss.css";
|
|
9
9
|
let watch = false;
|
|
10
|
+
let skipBase = false; // <-- add this
|
|
10
11
|
|
|
11
12
|
for (let i = 0; i < args.length; i++) {
|
|
12
13
|
if ((args[i] === "-o" || args[i] === "--output") && args[i + 1]) {
|
|
@@ -16,10 +17,13 @@ for (let i = 0; i < args.length; i++) {
|
|
|
16
17
|
if (args[i] === "-w" || args[i] === "--watch") {
|
|
17
18
|
watch = true;
|
|
18
19
|
}
|
|
20
|
+
if (args[i] === "--skip-base") { // <-- add this
|
|
21
|
+
skipBase = true;
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
function run() {
|
|
22
|
-
const css = generateCSS();
|
|
26
|
+
const css = generateCSS({ skipBase }); // <-- pass skipBase
|
|
23
27
|
const outDir = path.dirname(outFile);
|
|
24
28
|
if (!fs.existsSync(outDir)) {
|
|
25
29
|
fs.mkdirSync(outDir, { recursive: true });
|