Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 4525021

Browse files
committed
fix(build-in.ts): fs.append add console message
1 parent 95c9242 commit 4525021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_internal/utils/build-in.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const buildIn = (styleSheet: string, global?: string): void => {
1616
const cssData = fs.readFileSync(filePath, 'utf-8');
1717
if (!cssData.includes(styleSheet)) {
1818
fs.appendFileSync(filePath, styleSheet, 'utf-8');
19+
if (process.argv.includes('--log')) console.log(message + styleSheet);
1920
}
20-
if (process.argv.includes('--log')) console.log(message + styleSheet);
2121
}
2222
} catch (error) {
2323
console.error('Error writing to file:', error);

0 commit comments

Comments
 (0)