alanshaw / grunt-include-replace

Grunt task to include files and replace variables. Allows for parameterised includes.
MIT License
200 stars 45 forks source link

the file array format processing is very slow #73

Open tanmay1978 opened 8 years ago

tanmay1978 commented 8 years ago

When I use a file in an array format notation it task lot of time to process and copy the files to the dest.

Is there a workaround?

XhmikosR commented 8 years ago

I doubt this is something to do with grunt-include-replace. I'm personally using this for all my projects with no problem.

Probably your HDD is slow or something else is slowing down the process (Antivirus perhaps).

tanmay1978 commented 8 years ago

Hi

I deal with somewhere around 300-500 html files.

It does take considerable amount of time, when compared to normal method. The HDD is infact fine, if not other things also had to be slow, but it was not the case. On Jul 14, 2016 1:15 PM, "XhmikosR" notifications@github.com wrote:

I doubt this is something to do with grunt-include-replace. I'm personally using this for all my projects with no problem.

Probably your HDD is slow or something else is slowing down the process (Antivirus perhaps).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alanshaw/grunt-include-replace/issues/73#issuecomment-232588364, or mute the thread https://github.com/notifications/unsubscribe/AE8TLNJLbzPebRyhB4dsRNkihzm_NvDsks5qVekTgaJpZM4JG4ZB .

XhmikosR commented 8 years ago

Again, it's something on your side. You need to pinpoint what's causing this yourself.

On Jul 17, 2016 20:13, "Tanmay Arun Navghare" notifications@github.com wrote:

Hi

I deal with somewhere around 300-500 html files.

It does take considerable amount of time, when compared to normal method. The HDD is infact fine, if not other things also had to be slow, but it was not the case. On Jul 14, 2016 1:15 PM, "XhmikosR" notifications@github.com wrote:

I doubt this is something to do with grunt-include-replace. I'm personally using this for all my projects with no problem.

Probably your HDD is slow or something else is slowing down the process (Antivirus perhaps).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/alanshaw/grunt-include-replace/issues/73#issuecomment-232588364 , or mute the thread < https://github.com/notifications/unsubscribe/AE8TLNJLbzPebRyhB4dsRNkihzm_NvDsks5qVekTgaJpZM4JG4ZB

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alanshaw/grunt-include-replace/issues/73#issuecomment-233192514, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVVtftn--D_YPWuAwAgeyAZOvA_3vlkks5qWmKlgaJpZM4JG4ZB .

tanmay1978 commented 8 years ago

I use something like this. So when I use cwd parameter the processing is very slow.

options: {
                    prefix: '<!-- @@',
                    suffix: ' -->',
                    includesDir: 'src/',
                    docroot: '/',
                    globals: { }
                },
                expand: true,
                cwd: 'src/',
                // Files to perform replacements and includes with
                src: '**/*.html',
                // Destination directory to copy files to
                dest: 'dist/test2/'