Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.12 KB

brunch.md

File metadata and controls

62 lines (48 loc) · 1.12 KB
title layout
Brunch
default

Paths

/
  app/
    assets/
  vendor/
  public/
  config.coffee

Config

files:
  javascripts:   # or 'stylesheets' or 'templates'
    order:
      before: [ 'normalize.css' ]
      after:  [ 'helpers.css' ]

    joinTo: 'app.js'
    joinTo:
      'js/app.js':    /^app/
      'js/vendor.js': /^vendor/
    pluginHelpers: 'js/vendor.js'

paths:
  public: 'public'                       # where to compile
  watched: ['app','test','vendor']       # what to monitor

modules:
  wrapper: 'amd'
  definition: 'amd'
  nameCleaner: (path) -> path.replace /^app\//, ''

# brunch b --apply production
overrides:
  production:
    optimize: true
    sourceMaps: false
    plugins: autoReload: enabled: false

Plugins

plugins:
  uglify:
    mangle: true
    compress:
      global_defs:
        DEBUG: false

Stuff

  • uglify-js-brunch
  • stylus-brunch
  • coffee-script-brunch

References