File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,16 @@ const globber = require('globby')
88const watcher = require ( 'chokidar' )
99
1010const postcss = require ( 'postcss' )
11- const postcssrc = require ( 'postcss-load-config' )
11+ const postcssLoadConfig = require ( 'postcss-load-config' )
12+
13+ const postcssrc = ( ) => {
14+ return postcssLoadConfig ( )
15+ . catch ( e => {
16+ // Ignore PostCSS config not found error:
17+ if ( e . message . indexOf ( 'No PostCSS Config found' ) === - 1 ) throw e
18+ else return { plugins : [ ] , options : { } }
19+ } )
20+ }
1221
1322const logo = `
1423 /|\\
Original file line number Diff line number Diff line change 3232 "globby" : " ^6.0.0" ,
3333 "ora" : " ^0.4.0" ,
3434 "postcss" : " ^5.2.4" ,
35- "postcss-load-config" : " ^1.0.0-rc " ,
35+ "postcss-load-config" : " ^1.1.0 " ,
3636 "yargs" : " ^6.0.0"
3737 },
3838 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments