Cachebuster for Expression Engine
npm install grunt-ee-cachebuster> Cachebuster for Expression Engine
~0.4.5If 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:
``shell`
npm install grunt-ee-cachebuster --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-ee-cachebuster');
to the data object passed into grunt.initConfig().`js
grunt.initConfig({
ee_cachebuster: {
example:{
options: {
templates: ['admin/expressionengine/templates/default_site/*/'],
themefiles: ['themes/theme_directory/js/source/.js', 'themes/theme_directory/js/min/.js', 'themes/theme_directory/css/*.css'],
themefolder: 'themes/'
}
}
},
});
`$3
#### options.templates
Type:
String or Array
Default value: []The location of the template files you wish to search through and attach the cachebusting suffix
#### options.themefiles
Type:
String or Array
Default value: []The location of files you want to cachebust
#### options.themefolder
Type:
String
Default value: themes/`The location of theme folder