builder-amd-css
Advanced tools
Comparing version 0.0.6 to 0.0.7
24
index.js
@@ -72,3 +72,3 @@ var requireCssFiles, | ||
requirejs.optimize( config, function() { | ||
callback( null, files[ "dist/output.css" ], files ); | ||
callback( null, files[ "dist/output.css" ] || "", files ); | ||
done(); | ||
@@ -88,12 +88,16 @@ }, function( error ) { | ||
// Clone files + make sure all CSSes are String utf-8. | ||
Object.keys( files ).forEach(function( path ) { | ||
if ( /\.css$/i.test( path ) ) { | ||
clonedFiles[ path ] = files[ path ].toString( "utf-8" ); | ||
} else { | ||
clonedFiles[ path ] = files[ path ]; | ||
} | ||
}); | ||
try { | ||
// Clone files + make sure all CSSes are String utf-8. | ||
Object.keys( files ).forEach(function( path ) { | ||
if ( /\.css$/i.test( path ) ) { | ||
clonedFiles[ path ] = files[ path ].toString( "utf-8" ); | ||
} else { | ||
clonedFiles[ path ] = files[ path ]; | ||
} | ||
}); | ||
buildCss( clonedFiles, config, callback ); | ||
buildCss( clonedFiles, config, callback ); | ||
} catch( error ) { | ||
callback( error ); | ||
} | ||
}; |
{ | ||
"name": "builder-amd-css", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
40467
735