hikaruworld / grunt-sails-linker

Grunt plugin for autoinsertion of script tags in an html file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grunt-sails-linker-cdn

see grunt-sails-linker

Autoinsert script tags (or other filebased tags) in an html file

Overview

grunt.initConfig({
  'sails-linker-cdn': {
    defaultOptions: {
      options: {
        startTag: '<!--SCRIPTS-->',
        endTag: '<!--SCRIPTS END-->',
        fileTmpl: '<script src="%s"></script>',
      },
      files: {
        // Target-specific file lists and/or options go here.
        'app/index.html': ["//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"]
      },
    },
  },
})

About

Grunt plugin for autoinsertion of script tags in an html file

License:MIT License


Languages

Language:JavaScript 100.0%