Browse files

avoid semicolon insertion edge cases

  • Loading branch information...
1 parent d831d53 commit 54d1eaff4e09b96a102dbee4a7ee75f59737fffe @masylum committed Dec 8, 2011
Showing with 6 additions and 2 deletions.
  1. +5 −1 lib/asereje.js
  2. +1 −1 package.json
View
6 lib/asereje.js
@@ -37,7 +37,11 @@ function _get(type, global_files, files) {
var self = this, minified, bundled = '';
files.forEach(function (el) {
- bundled += self[el];
+ if (type === 'css') {
+ bundled += self[el];
+ } else {
+ bundled += self[el] + ';';
+ }
});
if (type === 'css') {
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "asereje",
"description": "Asereje is a library that builds your assets on demand",
- "version": "0.0.9",
+ "version": "0.1.0",
"author": "Pau Ramon <masylum@gmail.com>",
"keywords": ["build", "assets", "css", "javascript"],
"main": "./index",

0 comments on commit 54d1eaf

Please sign in to comment.