 
       contents =
         (grunt.file.read src)
-        .replace /fonts\\glyphicons/g, 'fonts/glyphicons'
+        .replace(/\.\.\/\b/g, '')
+        # Work around callumlocke/resource-embedder#15
+        .replace(/fonts\\glyphicons/g, 'fonts/glyphicons')
       grunt.file.write dest, contents
       grunt.log.writeln "File \"#{dest}\" created."
       return

    'requirejs'
    'uglify'
    'embed'
    'fixembedcss'
  ]

  grunt.registerTask 'release', "Release the build to GitHub Pages.", [

  grunt.loadNpmTasks 'grunt-svgmin'


  grunt.registerMultiTask 'fixcsspaths', '.', ->
    @files.forEach (files) ->
      src = files.src[0]
      dest = files.dest
