From a2b3b711633e031ff145a9fe1fcc8a2fbe9ebdaf Mon Sep 17 00:00:00 2001 From: Alexander Trofimov Date: Thu, 22 Oct 2020 12:40:23 +0300 Subject: [PATCH] [run] Fix Fix empty --- Gruntfile.js | 10 +++------- package.json | 3 +++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index fa8ee002..11431679 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -123,13 +123,9 @@ module.exports = function (grunt) { }); grunt.registerTask('build-develop', 'Build develop scripts', function () { - if (packageFile.grunt["develop-copy"]) { - grunt.initConfig({ - copy: packageFile.grunt["develop-copy"] - }); - } else { - grunt.registerTask('copy', 'No copy', function () {}); - } + grunt.initConfig({ + copy: packageFile.grunt["develop-copy"] + }); }); grunt.loadNpmTasks('grunt-contrib-clean'); diff --git a/package.json b/package.json index caf772fe..87a3e49b 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,9 @@ "dest": "./build/server" } }, + "develop-copy": { + "server": {} + }, "clean": { "options": { "force": true