Skip to content

Commit 9639795

Browse files
committed
Giving the user a nice, default postcss.config.js file
1 parent 4ad8d88 commit 9639795

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/friendly-errors/formatters/missing-postcss-config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,19 @@ function formatErrors(errors) {
2525
);
2626
messages.push('');
2727
messages.push(`${chalk.bgGreen.black('', 'FIX', '')} Create a ${chalk.yellow('postcss.config.js')} file at the root of your project.`);
28+
messages.push('');
29+
messages.push('Here is an example to get you started!')
30+
messages.push(chalk.yellow(`
31+
// postcss.config.js
32+
module.exports = {
33+
plugins: {
34+
'autoprefixer': {},
35+
}
36+
}
37+
`));
2838

2939
messages.push('');
40+
messages.push('')
3041

3142
return messages;
3243
}

0 commit comments

Comments
 (0)