Skip to content Skip to sidebar Skip to footer

Grunt My Code Is Duplicated In Concat.js

Here is my grunt config file: module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmT

Solution 1:

It looks like you're building to the same directory/files as your source. I think that's a bad idea.

You should keep the files you're working on in one directory (for instance src) and let Grunt tasks output to another (for instance app). That would at least decrease the risk of duplication.

If you have one task that needs to work on the output of another task, let the first task output to a temporary directory and let the second task read from it.


Post a Comment for "Grunt My Code Is Duplicated In Concat.js"