Skip to content

Commit 06482a9

Browse files
committed
CLI: Use csscomb.json by default
1 parent d6fc990 commit 06482a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ var configPath = program.config &&
3636
path.resolve(process.cwd(), program.config) ||
3737
Comb.getCustomConfigPath();
3838

39-
if (fs.existsSync(configPath) && configPath.match(/\.css$/)) {
39+
if (!fs.existsSync(configPath)) {
40+
config = require('../config/csscomb.json');
41+
} else if (configPath.match(/\.css$/)) {
4042
config = Comb.detectInFile(configPath);
4143
} else {
4244
config = Comb.getCustomConfig(configPath);

0 commit comments

Comments
 (0)