sdc-build-wp 3.0.7 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/style.js +7 -6
- package/package.json +1 -1
package/lib/style.js
CHANGED
|
@@ -55,7 +55,7 @@ const buildSass = async (entry, name, entriesToLint) => {
|
|
|
55
55
|
fix: true
|
|
56
56
|
}).then((data) => {
|
|
57
57
|
if (data.errored) {
|
|
58
|
-
console.
|
|
58
|
+
console.error(data.output);
|
|
59
59
|
log('error', `Failed linting ${entry.replace(project.path + '/_src/style/', '')} - See above error.`);
|
|
60
60
|
return false;
|
|
61
61
|
}
|
|
@@ -65,9 +65,9 @@ const buildSass = async (entry, name, entriesToLint) => {
|
|
|
65
65
|
});
|
|
66
66
|
fs.writeFile(outFile, result.css, function(err) {
|
|
67
67
|
if (err) {
|
|
68
|
-
console.
|
|
69
|
-
log('error', `Failed
|
|
70
|
-
return false;
|
|
68
|
+
// console.error(err);
|
|
69
|
+
// log('error', `Failed compiling ${entryLabel} - See above error.`);
|
|
70
|
+
// return false;
|
|
71
71
|
} else {
|
|
72
72
|
if (!fs.existsSync(project.path + '/dist')) {
|
|
73
73
|
fs.mkdirSync(project.path + '/dist');
|
|
@@ -91,9 +91,10 @@ const buildSass = async (entry, name, entriesToLint) => {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
} catch {
|
|
94
|
+
} catch(error) {
|
|
95
|
+
console.error(error);
|
|
95
96
|
log('error', `Failed building ${entryLabel} - See above error.`);
|
|
96
|
-
|
|
97
|
+
return false;
|
|
97
98
|
}
|
|
98
99
|
});
|
|
99
100
|
};
|