grunt-plug-insert

0.1.2 • Public • Published

grunt-plug-insert

Insert merge code at the specified hook.

npm install grunt-plug-insert --save-dev

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

grunt.loadNpmTasks('grunt-plug-insert');

Gruntfile.js

grunt.initConfig({
  insert: {
    options: {
      banner: "",
      link: "\n",
      // Place of segmentation
      separator: '@CODE inserts compiled test here',
      // Insert the target file
      target: 'test/fixtures/test'
    },
    files: {
      // Target and fragmentation files
      'tmp/test': ['test/fixtures/insert1', 'test/fixtures/insert2']
    },
  },
});

Readme

Keywords

Package Sidebar

Install

npm i grunt-plug-insert

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

6.74 kB

Total Files

11

Last publish

Collaborators

  • yelloxing