Skip to content

Commit 67c566b

Browse files
committed
Fix results check and add gitignore
1 parent ca8a555 commit 67c566b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules
3+
*.log

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function checkCSSLoader(input, options, webpack, callback) {
99
results.push([ 'Line ' + line + ':' + col + ' - ' + msg ]);
1010
});
1111

12-
if (results) {
12+
if (results.length) {
1313
for (var i = 0; i < results.length; i++){
1414
if (options.failTypeError) {
1515
webpack.emitError(results[i]);

0 commit comments

Comments
 (0)