grunt-script-import
Use this grunt module to import various javascript files into your html files in a shorthand format.
#Installation
$ npm install grunt-script-import
#Gruntfile
script-import: {
compile: {
src : 'path/to/src.html',
dest : 'path/to/output.html',
dev_dir : 'path/to/dev_directory'
}
}
#Syntax
<script src="/path/to/other.js" type="text/javascript"></script>
@import path/to/script.js
###Import a file
@import path/to/script.js
###Import a directory
@import directory_name/*.js
###Import a directory and sub directories
@import directory_name/**/*.js