Skip to content
Snippets Groups Projects
Commit 30bc1793 authored by Bogdan Plieshka's avatar Bogdan Plieshka
Browse files

MAGETWO-42613: [GitHub] Fix Grunt refresh task

- Fixed grunt refresh task
parent 7c597539
Branches
No related merge requests found
......@@ -9,6 +9,7 @@ module.exports = function (grunt) {
var _ = require('underscore'),
path = require('path'),
themes = require('./dev/tools/grunt/configs/themes'),
configDir = './dev/tools/grunt/configs',
taskDir = './dev/tools/grunt/tasks';
......@@ -63,14 +64,18 @@ module.exports = function (grunt) {
},
/**
* Refresh magento frontend & backend.
* Refresh themes.
*/
refresh: [
'exec:all',
'less:blank',
'less:luma',
'less:backend'
],
refresh: function () {
var tasks = [
'clean',
'exec:all'
];
_.each(themes, function(theme, name) {
tasks.push('less:' + name);
});
grunt.task.run(tasks);
},
/**
* Documentation
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment