mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-01 21:06:12 +03:00
Grunt now copies the images into the build folder
This commit is contained in:
parent
75bb765ca0
commit
cd765581e6
1 changed files with 8 additions and 1 deletions
9
grunt.js
9
grunt.js
|
@ -86,8 +86,15 @@ module.exports = function(grunt) {
|
|||
}
|
||||
});
|
||||
|
||||
// Copy task.
|
||||
grunt.registerTask("copy", function() {
|
||||
grunt.file.recurse("images", function(abspath, rootdir, subdir, filename) {
|
||||
grunt.file.copy(abspath, "build/images/" + (subdir || "") + filename);
|
||||
});
|
||||
});
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask("default", "lint:beforeconcat concat lint:afterconcat min");
|
||||
grunt.registerTask("default", "lint:beforeconcat concat lint:afterconcat min copy");
|
||||
|
||||
// Test task.
|
||||
grunt.registerTask("test", "default server qunit");
|
||||
|
|
Loading…
Add table
Reference in a new issue