File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ gulp.task("sass", function() {
74
74
2 . 取得したファイルの先頭に"prefix text"という文字列を追加する
75
75
3 . 変更したファイルを` build/ ` ディレクトリに出力する
76
76
77
+ ### Stream
78
+
77
79
[ gulp-prefixer.js] ( #gulp-prefixer.js ) を見てみると、` gulpPrefixer ` という[ Transform Stream] ( https://nodejs.org/api/stream.html#stream_class_stream_transform " stream.Transform ") のインスタンスを返していることが分かります。
78
80
79
81
Transform Streamというものが出てきましたが、Node.jsのStreamは次の4種類があります。
@@ -103,6 +105,8 @@ Transform Streamというものが出てきましたが、Node.jsのStreamは次
103
105
そのため、Node.js Streamには[ Object Mode] ( https://nodejs.org/api/stream.html#stream_object_mode " Object Mode ") があり、
104
106
JavaScriptのオブジェクトそのものをStreamで流せるようになっています。
105
107
108
+ ### vinyl
109
+
106
110
gulpでは[ vinyl] ( https://github.com/gulpjs/vinyl " vinyl ") オブジェクトがStreamとして流れてきます。
107
111
このvinylは _ Virtual file format_ というように、データをラップした抽象フォーマットのオブジェクトです。
108
112
You can’t perform that action at this time.
0 commit comments