grunt-crisper

1.0.1 • Public • Published

grunt-crisper

Grunt plugin for Crisper that split inline scripts from an HTML file for CSP compliance

Issues with the output should be reported on the Crisper issue tracker.

Install

$ npm install --save-dev grunt-crisper

Usage

crisper: {
  dist: {
    options: {
      cleanup: false,
      scriptInHead: false, // true is default
      onlySplit: false
    },
    src: 'app/vulcanized.html',
    dest: 'dist/vulcanized-csp.html'
  }
};

Config

files

Options

cleanup

Type: Boolean Default: true

It's set cleanup to true, source file(vulcanized.html) will be removed after crisper task is done.

License

MIT © Jimmy Moon

/grunt-crisper/

    Package Sidebar

    Install

    npm i grunt-crisper

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • ragingwind