Open akaNightmare opened 7 years ago
Grunt task
grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), cacheBust: { build: { options: { queryString: true, baseDir: './assets/', jsonOutput: true, assets: ['css/**/*.css', 'js/**/*.js'], }, files: [{ expand: true, src: ['./views/**/*.ejs'] }] } })
Result:
<script src="/js/plugins/jquery.js?3210f0f7a3c99d2e?3210f0f7a3c99d2e?3210f0f7a3c99d2e"></script>
as I see relates to https://github.com/hollandben/grunt-cache-bust/pull/227
Grunt task
Result: