18
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

遅いgrunt-styleguide + styledoccoを爆速にする

Last updated at Posted at 2014-05-27

某社CTOに教えて頂いた。

設定前

2分かかってます。ひえー。

Gruntfile.js
    styleguide: {
      xxx: {
        options: {
          framework: {
            name: 'styledocco'
          }
        },
        files: {
          // …
        },
      }
    },
$ time grunt styleguide
Running "styleguide:dist" (styleguide) task

>> DEST: …

Done, without errors.

real	2m2.127s
user	1m59.839s
sys	0m2.192s

設定後

--no-minifyを設定する。

Gruntfile.js
    styleguide: {
      xxx: {
        options: {
          framework: {
            name: 'styledocco',
            options: {
              'no-minify': true
            }
          }
        },
        files: {
          // …
        },
      }
    },
$ time grunt styleguide
Running "styleguide:xxx" (styleguide) task

>> DEST: …

Done, without errors.

real	0m2.688s
user	0m2.404s
sys	0m0.292s

2分かかっていたものが2秒で終わるようになりました。ゴイスー

18
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?