observing / square

The last build system you would ever want to use
MIT License
56 stars 9 forks source link

Development files are not wrapped #39

Closed Swaagie closed 12 years ago

Swaagie commented 12 years ago

This might be me doing something wrong, but the latest (0.0.8) version of square does not wrap the merged content of type dev. This can easily be recreated with the basic.js in the tests/fixtures, by wrapping it in a anonymous function.

{                                                        
  "configuration": {                                     
    "dist": "/tmp/test.{type}.{ext}",                    
    "plugins": {                                         
      "wrap": {                                          
        "header": "(function() {\n",                     
        "footer": "})();",                               
        "leaks": false                                   
      }                                                  
    }                                                    
  },                                                     
  "bundle": {                                            
    "basic.js": {                                        
      "description": "wrap simple js to test the wrapper"
    }                                                    
  }                                                      
}                                                        

Is this intended, can't think of a reason why?

3rd-Eden commented 12 years ago

Fixed by #40