From 4d4e779f1fd29d7a5def74406f1c683d08187706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 26 Oct 2020 21:24:19 +0100 Subject: [PATCH] Synchronize production less paths with development paths issue9742 review318631002 --- Gruntfile.js | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 567a68a2b5..37667a6fba 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -26,6 +26,14 @@ module.exports = function(grunt) { 'src/plugins.js', 'src/html_sanitizer.js' ]; + var less_paths = [ + 'src', + 'bower_components', + 'bower_components/bootstrap', + 'bower_components/bootstrap/less', + 'bower_components/bootstrap-rtl-ondemand/less', + 'bower_components/tempusdominus-bootstrap-3/src/less/' + ]; // Project configuration. grunt.initConfig({ @@ -100,14 +108,7 @@ module.exports = function(grunt) { less: { dev: { options: { - paths: [ - 'src', - 'bower_components', - 'bower_components/bootstrap', - 'bower_components/bootstrap/less', - 'bower_components/bootstrap-rtl-ondemand/less', - 'bower_components/tempusdominus-bootstrap-3/src/less/', - ] + paths: less_paths, }, files: { 'dist/<%= pkg.name %>.css': 'src/sao.less' @@ -115,13 +116,7 @@ module.exports = function(grunt) { }, 'default': { options: { - paths: [ - 'src', - 'bower_components', - 'bower_components/bootstrap/less', - 'bower_components/bootstrap-rtl-ondemand/less', - 'bower_components/eonasdan-bootstrap-datetimepicker/src/less', - ], + paths: less_paths, yuicompress: true }, files: {