Comparing version 0.12.4 to 0.12.5
@@ -128,3 +128,6 @@ var inherits = require( 'inherits' ); | ||
var tempBundlePath = path.join( path.dirname( dstPath ), '.temp_' + path.basename( dstPath ) ); | ||
var srcAssets = _this.parcelAssetsByType[ assetType ]; | ||
if( srcAssets.length === 0 ) return callback(); // we don't want to create an empty bundle just because we have no source files | ||
bundle.pipe( fs.createWriteStream( tempBundlePath ) ).on( 'close', function ( err ) { | ||
@@ -148,5 +151,2 @@ // execution resumes here after all the individual asset streams | ||
var srcAssets = _this.parcelAssetsByType[ assetType ]; | ||
if( srcAssets.length === 0 ) return callback(); // we don't want to create an empty bundle just because we have no source files | ||
// pipe all our individual style streams to the bundle in order to concatenate them | ||
@@ -153,0 +153,0 @@ async.eachSeries( srcAssets, function( thisAsset, nextAsset ) { |
{ | ||
"name": "parcelify", | ||
"version": "0.12.4", | ||
"version": "0.12.5", | ||
"description": "Create css bundles from npm packages using the browserify dependency graph.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
60062