assetstream
Advanced tools
Comparing version 0.1.8 to 0.1.9
var AssetStream = exports; | ||
AssetStream.version = require('./package.json').version; | ||
AssetStream.mime = require('mime'); | ||
@@ -5,0 +7,0 @@ |
{ | ||
"name": "assetstream", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Stream and transform your browser assets.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -266,6 +266,10 @@ | ||
var shouldBundle = false; | ||
if (asset.event === 'delete') { | ||
if (modules[asset.path]) { | ||
shouldBundle = true; | ||
} | ||
delete modules[asset.path]; | ||
} else if (asset.event === 'update' && isType.javaScript(asset)) { | ||
if (!asset.content.minified) { | ||
@@ -276,2 +280,7 @@ callback(new Error('Can only bundle minified JavaScript modules.')); | ||
modules[asset.path] = loadJavaScriptAsset(asset); | ||
shouldBundle = true; | ||
} | ||
if (shouldBundle) { | ||
if (!loader) { | ||
@@ -282,10 +291,7 @@ loader = loadJavaScriptAsset(createLoader(loaderPath)); | ||
modules[asset.path] = loadJavaScriptAsset(asset); | ||
bundleCallback = callback; | ||
clearTimeout(bundleTimer); | ||
bundleTimer = setTimeout(createBundle, 100); | ||
} | ||
}; | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39046
1232