       .concat paths.app.internal.scripts.folderToCleanup
 
   # clean up bower dependencies, if they've been bundled, or they will be served via cdn
-  if options.online or options.bundle
+  if options.cdn? or options.bundle?
     src = src.concat paths.dependencies.bower.folderToCleanup
 
   del src


# PARAMS:
# --bundle: true/false, default to false
# --online: true/false, default to false
# --lint: true/false, default to false

options =
  bundle: argv.bundle || false
  online: argv.online || false
  lint: argv.lint || false

console.log options

    .pipe gulp.dest (file) -> file.base

gulp.task 'cdnize-elements', ->
  switch options.cdn
    when 'wcdn'
      cdn_prefix = "https://cdn.wcdn.io/"
    when 'azure'
      cdn_prefix = "https://projectyorucdn.blob.core.windows.net/project-yoru-cdn/"
    when 'polygit'
      cdn_prefix = "https://polygit.org/components/"

  gulp
    .src paths.elements.internal.pages.compiled
    .pipe $.debug()
    # TODO PreloadJS on jsdelivr is still v0.3, the one on cdnjs is still v0.6.0, while the latest is v0.6.2
    .pipe $.replace "../../bower_components/PreloadJS/lib/preloadjs-0.6.2.combined.js", "https://cdnjs.cloudflare.com/ajax/libs/PreloadJS/0.6.0/preloadjs.min.js"
    .pipe $.replace "../../bower_components/", cdn_prefix
    .pipe gulp.dest (file) -> file.base # the same place

gulp.task 'bundle-after-build', (cb) ->
  sequence = []
