Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Too many icons will lock machine #15

Closed
jefflembeck opened this issue Feb 18, 2015 · 4 comments
Closed

Too many icons will lock machine #15

jefflembeck opened this issue Feb 18, 2015 · 4 comments
Labels

Comments

@jefflembeck
Copy link
Collaborator

Due to the nature of how directory-colorfy works, once you get to enough phantom processes being spun up, the whole thing will lock your machine up.

This bug is pretty critical.

@hassan-zaheer
Copy link

Is there any workaround to this that I can try while its fixed?

@jefflembeck
Copy link
Collaborator Author

The problem at this point is that there are too many icons/colors, leading to too many processes being spun (this is what we're fixing). The only work around I can think of, is to find a way to split up your icons into several different folders, then run grunticon on each of the different folders (it's a multitask, so you CAN set it up to run many different tasks.

    grunticon: {
      all: {
        files: [{
          expand: true,
          cwd: /some/directory
          src: ['*.svg', '*.png'],
          dest: "dist/css/grunticon/"
        }],
        options: {
          cssprefix: '.icon-',
          cssbasepath: "/",
          enhanceSVG: true
        }
      },
      foo: {
       // same config as above, with a different cwd
      },
      bar: {
        // same config as above but another cwd
      }
    },

Afterward, you should be able to concat all of your created css files from the different tasks to create one for loading.

This SHOULD work, but is far less than ideal. We're working on the fix and hopefully will have something soon.

@johnbender
Copy link
Contributor

@hassanzaheer123

I just pushed a possible fix to the large-run branch if you want to try it.

@jefflembeck
Copy link
Collaborator Author

Fix checked in for 2.0.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants