grunt-exorcise

Move Browserify source maps to a separate file using Exorcist and Grunt

grunt-exorcise

Move Browserify source maps to a separate file using Exorcist and Grunt

This plugin requires Grunt 0.4.x

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-exorcise --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-exorcise');
grunt.initConfig({
  exorcise: {
    bundle: {
      options: {},
      files: {
        'public/js/bundle.map': ['public/js/bundle.js'],
      }
    }
  }
});

Type: String

Location to place the new bundle with the inline source map removed. By default the source bundle file will be overwritten.

Type: Boolean Default: false Fail the build when the source map is missing. Default is false, equivalent to exorcist default behaviour.

Type: String

Passed directly to exorcist. Refer to the exorcist documentation.

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

  • Initial release