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

Pleeease watch is watching all .css and .scss files for changes #91

Open
stijnvc opened this issue May 31, 2019 · 0 comments
Open

Pleeease watch is watching all .css and .scss files for changes #91

stijnvc opened this issue May 31, 2019 · 0 comments

Comments

@stijnvc
Copy link

stijnvc commented May 31, 2019

I'm using pleeease together with a local jekyll install.

.pleeeaserc looks like this:

{
  "in": "css/style.scss",
  "out": "css/style.min.css",
  "sass": true,
  "pseudoElements": false,
  "opacity": false
}

I run pleeease alongside jekyll (using bundler) with de following command:

pleeease watch & bundle exec jekyll serve --config _config_dev.yml  ; fg

Pleeease and Jekyll are both actively watching files for changes, which results in them both triggering each other. This shouldn't happen since I set pleeease to watch a file that Jekyll will never modify. If you look at the command line output below you can see that is seems as if pleeease is watching all .css and .scss files, also within the _site directory where Jekyll is generating files. Though pleeease is only updating style.min.css which I set in .pleeeaserc (as you can see by Jekyll regenerating it).

Configuration file: _config_dev.yml
Pleeease Compile 1 file(s) [css/style.scss] to css/style.min.css
Pleeease Watcher is running...
            Source: /Users/stijn/Documents/GitHub/website
       Destination: /Users/stijn/Documents/GitHub/website/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 1.592 seconds.
 Auto-regeneration: enabled for '/Users/stijn/Documents/GitHub/website'
Pleeease Recompiled file _site/assets/css/style.css
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
Pleeease Recompiled file css/style.scss
      Regenerating: 2 file(s) changed at 2019-05-31 12:06:35
                    css/style.min.css
                    css/style.scss
                    ...done in 1.852282 seconds.
                    
Pleeease Recompiled file _site/assets/css/style.css
Pleeease Recompiled file _site/css/style.scss
      Regenerating: 1 file(s) changed at 2019-05-31 12:06:37
                    css/style.min.css
                    ...done in 1.515157 seconds.
                    
Pleeease Recompiled file _site/assets/css/style.css
      Regenerating: 1 file(s) changed at 2019-05-31 12:06:39
                    css/style.min.css
                    ...done in 1.543615 seconds.
                    
Pleeease Recompiled file _site/assets/css/style.css
      Regenerating: 1 file(s) changed at 2019-05-31 12:06:40
                    css/style.min.css
                    ...done in 1.499627 seconds.
                    
Pleeease Recompiled file _site/assets/css/style.css
      Regenerating: 1 file(s) changed at 2019-05-31 12:06:42
                    css/style.min.css
                    ...done in 1.54759 seconds.

And it keeps going.

Any idea how I can fix this? Is this expected behaviour?

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

No branches or pull requests

1 participant