File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
- var es = require ( 'event -stream' )
1
+ var map = require ( 'map -stream' )
2
2
, clone = require ( 'clone' )
3
3
, sass = require ( 'node-sass' )
4
4
, path = require ( 'path' )
@@ -7,12 +7,9 @@ var es = require('event-stream')
7
7
;
8
8
9
9
module . exports = function ( options ) {
10
- var opts = options ? clone ( options ) : { } ;
10
+ var opts = options ? options : { } ;
11
11
12
12
function nodeSass ( file , cb ) {
13
- if ( path . basename ( file . path ) . indexOf ( '_' ) === 0 ) {
14
- return cb ( ) ;
15
- }
16
13
17
14
if ( file . isNull ( ) ) {
18
15
return cb ( null , file ) ;
@@ -22,7 +19,6 @@ module.exports = function (options) {
22
19
23
20
opts . success = function ( css ) {
24
21
file . path = ext ( file . path , '.css' ) ;
25
- file . shortened = file . shortened && ext ( file . shortened , '.css' ) ;
26
22
file . contents = new Buffer ( css ) ;
27
23
cb ( null , file ) ;
28
24
} ;
@@ -38,5 +34,5 @@ module.exports = function (options) {
38
34
sass . render ( opts ) ;
39
35
}
40
36
41
- return es . map ( nodeSass ) ;
37
+ return map ( nodeSass ) ;
42
38
} ;
You can’t perform that action at this time.
0 commit comments