gsi

grunt-script-import

Use this grunt module to import various javascript files into your html files in a shorthand format.

Showing:

Popularity

Downloads/wk

3

GitHub Stars

0

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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 with grunt-script-import -->
@import path/to/script.js
<!-- end import with grunt-script-import-->

###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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100