mechio / takana

Takana lets you see your SCSS and CSS style changes live, in the browser, as you type them
http://takana.io
MIT License
1.11k stars 61 forks source link

fix takana-client/dist path to work for both local and global installs #101

Closed mikebobroski closed 8 years ago

mikebobroski commented 8 years ago

0.5.2 worked for gulp, but broke CLI 0.5.3 fixed CLI, but broke takana in gulp.

Unfortunately, this is due to the location difference of takana-client when takana is installed locally vs globally.

Local install paths: node_modules/takana/lib/server.coffee node_modules/takana-client

Global install paths: node_modules/takana/lib/server.coffee node_modules/takana/node_modules/takana-client

The following commit handles both cases, checking first for a local install.