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 595d502 commit 7529218Copy full SHA for 7529218
lib/style-compiler/index.js
@@ -55,13 +55,20 @@ module.exports = function (css, map) {
55
56
return postcss(plugins)
57
.process(css, options)
58
- .then(function (result) {
+ .then(result => {
59
+ if (result.messages) {
60
+ result.messages.forEach(m => {
61
+ if (m.type === 'dependency') {
62
+ this.addDependency(m.file)
63
+ }
64
+ })
65
66
var map = result.map && result.map.toJSON()
67
cb(null, result.css, map)
68
return null // silence bluebird warning
69
})
70
}).catch(e => {
- console.log(e)
71
+ console.error(e)
72
cb(e)
73
74
}
0 commit comments