Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch not working correctly #98

Open
flachware opened this issue Apr 8, 2017 · 1 comment
Open

Watch not working correctly #98

flachware opened this issue Apr 8, 2017 · 1 comment

Comments

@flachware
Copy link

flachware commented Apr 8, 2017

Hi,

the plugin works fine as long I do not have any scss partials. Once partials are imported, the scss files are only processed when the server is started.

The example assumes main.css.scss and _variables.scss.

First start:

info: Contribute: http://docpad.org/docs/contribute
info: Plugins: browserifydocs, nodesass
info: Environment: development
info: Server started on http://0.0.0.0:9778
info: In your web browser use http://127.0.0.1:9778
(node:7371) DeprecationWarning
info: Generating...
info: Generated 1/2 files in 0.343 seconds
info: Watching setup starting...
info: Watching setup
info: The action completed successfully

After change in _variables.scss with running docpad:

info: Change detected at 16:06:01 update /Users/.../docpad-setup/src/render/styles/_variables.scss
info: Regenerating at 16:06:01
info: Generating...
info: Generated 0/2 files in 0.06 seconds
info: Regenerated at 16:06:01
info: Change detected at 16:06:03 update /Users/.../docpad-setup/src/render/styles/_variables.scss
info: Regenerating at 16:06:03
info: Generating...
info: Generated 0/2 files in 0.018 seconds
info: Regenerated at 16:06:03

Although the change is detected, 0 files are being generated.

Using docpad v6.7.9.4, docpad-plugin-nodesass 2.8.2 with node 6.10.2, but also tested with node 7.4.0 on macOS 10.12.3.

@flachware
Copy link
Author

I tried adding

watchOptions: preferredMethods: ['watchFile','watch']

to the DocPad config file like described in the troubleshoot page, but it did not help.

Is this the right place for this issue or should I reopen it in the docpad or bevry/watchr repo?

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

No branches or pull requests

2 participants