We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f5edf commit b5a0c4fCopy full SHA for b5a0c4f
index.js
@@ -8,7 +8,16 @@ const globber = require('globby')
8
const watcher = require('chokidar')
9
10
const postcss = require('postcss')
11
-const postcssrc = require('postcss-load-config')
+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
+}
21
22
const logo = `
23
/|\\
package.json
@@ -32,7 +32,7 @@
32
"globby": "^6.0.0",
33
"ora": "^0.4.0",
34
"postcss": "^5.2.4",
35
- "postcss-load-config": "^1.0.0-rc",
+ "postcss-load-config": "^1.1.0",
36
"yargs": "^6.0.0"
37
},
38
"devDependencies": {
0 commit comments