       document.body.appendChild(element)
     })
     """
-
     FS.writeFileSync("#{__dirname}/tmp.js", code, 'utf-8' )
 
     console.log "Creating browser bundle..."

    FS.unlink './tmp.js'
    callback result.code

# Builds a browser bundle
#
# @param [Store] store The store from which to build
# @param [String] tagname The name of the component to build
module.exports.build = (store,tagname,callback)->

  Components.store = store

  CleanCSS     = require 'clean-css'
  Autoprefixer = require 'autoprefixer'
  browserify   = require 'browserify'
  coffeeify    = require 'coffeeify'
  UglifyJS     = require 'uglify-js'

      result = UglifyJS.minify(src, {fromString: true})
      FS.unlink "#{__dirname}/tmp.js"

      callback result.code
