@fluffjs/cli 0.1.4 → 0.1.5
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/Cli.js +6 -0
- package/package.json +1 -1
package/Cli.js
CHANGED
|
@@ -311,6 +311,9 @@ Examples:
|
|
|
311
311
|
const styleContents = [];
|
|
312
312
|
for (const styleGlob of target.styles) {
|
|
313
313
|
const styleFiles = this.findFiles(srcDir, [styleGlob]);
|
|
314
|
+
if (styleFiles.length === 0) {
|
|
315
|
+
console.warn(` ⚠ Style not found: ${path.resolve(srcDir, styleGlob)}`);
|
|
316
|
+
}
|
|
314
317
|
for (const styleFile of styleFiles) {
|
|
315
318
|
styleContents.push(fs.readFileSync(styleFile, 'utf-8'));
|
|
316
319
|
}
|
|
@@ -489,6 +492,9 @@ Examples:
|
|
|
489
492
|
const styleContents = [];
|
|
490
493
|
for (const styleGlob of target.styles) {
|
|
491
494
|
const styleFiles = this.findFiles(srcDir, [styleGlob]);
|
|
495
|
+
if (styleFiles.length === 0) {
|
|
496
|
+
console.warn(` ⚠ Style not found: ${path.resolve(srcDir, styleGlob)}`);
|
|
497
|
+
}
|
|
492
498
|
for (const styleFile of styleFiles) {
|
|
493
499
|
styleContents.push(fs.readFileSync(styleFile, 'utf-8'));
|
|
494
500
|
}
|