diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..c669716 --- /dev/null +++ b/bower.json @@ -0,0 +1,23 @@ +{ + "name": "cssbeautify", + "main": "cssbeautify.js", + "version": "0.3.0", + "homepage": "http://cssbeautify.com", + "authors": [ + "Ariya Hidayat " + ], + "description": "Reindent and reformat CSS.", + "keywords": [ + "cssbeautify", + "css", + "formatter" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "assets", + "bin", + "images", + "test" + ] +} diff --git a/cssbeautify.js b/cssbeautify.js index b4ae096..11c6b1c 100644 --- a/cssbeautify.js +++ b/cssbeautify.js @@ -461,6 +461,9 @@ if (typeof exports !== 'undefined') { // Node.js module. module.exports = exports = cssbeautify; + } else if (typeof define === 'function' && define.amd) { + // Requirejs module. + define(function () { return cssbeautify; }); } else if (typeof window === 'object') { // Browser loading. window.cssbeautify = cssbeautify;