grunt-copy-includes
v0.1.2
Published
Copy external resources of your index file to selected directory.
Downloads
2
Readme
grunt-copy-includes
Copy external resources of your index file to selected directory.
Overview
Includes and external resources refer here to
- scripts specified by script elements,
- stylesheets linked by link elements and subsequently,
- background images of elements on arbitrary number of layers,
- font files with fallback options,
- cursor images with fallback options and
- list item marker images.
All on relative paths.
If you are building your web thing from modules like Bower components, you can let this Grunt plugin copy these types of resources, and only those you used, to your desired directory for packaging.
Usage Example
grunt.initConfig({
copy_includes: {
default: {
src: 'index.html',
dest: 'build'
}
}
});
Getting Started
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-copy-includes --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-copy-includes');
Options
There are no task-specific configuration options available.
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.