       plugin.optimize ?= plugin.minify if typeof plugin.minify is 'function'
 
       ### Does the user's config say this plugin should definitely be used? ###
-      return true if plugin.brunchPluginName in alwaysEnabled
+      return true if alwaysEnabled.length and alwaysEnabled.indexOf(plugin.brunchPluginName) >= 0
 
       ### If the plugin is an optimizer that doesn't specify a defaultEnv
       # decide based on the config.optimize setting ###

      env = plugin.defaultEnv ?= '*'

      ### Finally, is it meant for either any environment or an active environment? ###
      env is '*' or env in config.env

    debug "Loaded plugins: #{plugins.map((plugin) -> plugin.brunchPluginName).join(', ')}"


    .on('error', logger.error)
    .on 'add', (absPath) ->
      path = sysPath.relative config.paths.root, absPath
      unless possibleConfigFiles[path] or jsonConfigs.indexOf(path) >= 0
        changeHandler path
    .on 'change', (absPath) ->
      path = sysPath.relative config.paths.root, absPath
