0.1.2 • Published 5 years ago
grunt-plug-insert v0.1.2
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']
},
},
});