akileez / rendr

A personal static site generator
ISC License
2 stars 0 forks source link

Work to move uncss from project. #1

Closed akileez closed 9 years ago

akileez commented 9 years ago

weighs in at 16.6MB. mostly due to phantomjs. run via child_process.exec with the global install.

akileez commented 9 years ago

This solves the problem. :smiley_cat:

var resolve = require('resolve')
var uncss = require(resolve.sync('uncss', {basedir: '/usr/local/lib/node_modules'}))
akileez commented 9 years ago

done: https://github.com/akileez/rendr/commit/a75cf6e69461982acb0148db00e735959530201c project size 39MB to 5.4MB