NV / chrome-devtools-autosave

Auto-saving CSS and JavaScript changes from the Chrome Developer Tools
MIT License
1.05k stars 90 forks source link

i cannot get autosave to work with drupal #63

Closed Elvin-Xhimitiku closed 11 years ago

Elvin-Xhimitiku commented 11 years ago

I use mamp on a mac, and all my url end in a :8888 port a typical local site is like: http://mag:8888/

i tryed following this: http://timonweb.com/making-drupal-themers-life-easier-autosaving-css-changes-chrome-browser

but still nothing!

i also created a routes.js that looks like:

exports.routes = [{ from: /^http:\/\/localhost\//, to: '/Users/elvin/Sites/' }];

but nothing!

NV commented 11 years ago

This is written for DevTools Autosave version 0.x. You should try the latest version from Chrome WebStore.

Migration from pre 1.2 version Troubleshooting

Elvin-Xhimitiku commented 11 years ago

i did right after i wrote this issue, but still cant manage to find the solution :(

p.s. great job by the way! autosave is a lifesaver and timesaver :D

NV commented 11 years ago

You did what? Do you see any errors? Try troubleshooting.

Elvin-Xhimitiku commented 11 years ago

i have now 1.2 and am updated! i did the npm install again too.

now i use mamp and drupal for development

in: ^http://localhost:8888/ i got this error: DevTools Autosave 1.0.0 is running on http://127.0.0.1:9104 Cannot read a file. Error: ENOENT, no such file or directory '/Users/elvin/Sites/sites/default/files/css/css_m2Wq-zHUH_N8CdwdKiUbqxuQ0l_Slo-Sc7eqO8N3tFA.css'

but on ^http://mag:8888/

i dont get anything, even though i have a local site on: http://mag:8888/

what do i do?

NV commented 11 years ago

How does an URL of CSS file look like? Where is it on a file system?

Elvin-Xhimitiku commented 11 years ago

on the file system it is exactly here:

/Users/elvin/Sites/magnet/sites/all/themes/magnet/styles/style.css

but since it is drupal, here is a snipper from the head of the source:

Elvin-Xhimitiku commented 11 years ago

the comment above was stripped, but the idea is that those 4 import lines are inside style tags and are called dynamically by drupal's theme engine system

Elvin-Xhimitiku commented 11 years ago

hey NV dont worry anymore; somehow it started working !!!

i still have ^http://mag:8888/ /Users/elvin/Sites/magnet/

and now it decided to work :D

thanks a lot for the big module and help! rock on !