Comments (2)
I maybe had a similar problem when the css didnt get updated when saving a sass file in a subfolder (eg _scss/components/_buttons.scss).
Appearently the watch does only run sass in the root scss directory. So adding this line will runt the sass script also in subfolders:
gulp.watch('_scss/**/*.scss', ['sass']);
Complete watch function:
/**
* Watch scss files for changes & recompile
* Watch html/md files, run jekyll & reload BrowserSync
*/
gulp.task('watch', function () {
gulp.watch('_scss/*.scss', ['sass']);
gulp.watch('_scss/**/*.scss', ['sass']);
gulp.watch(['*.html', '*.md', '_layouts/*.html', '_case/*', '_curious-about/*', '_includes/**/**', 'js/**', '_scss/**'], ['jekyll-rebuild']);
});
from jekyll-gulp-sass-browser-sync.
I have the same problem.
browsersync does not inject the css correctly, what could be happening ?, I applied the command:
browser-sync start --proxy localhost/simple-grid --files "./*.*"
So far, it detects all types of .html .php .js file, but when compiling from .scss to .css it does not do anything. As you can see I have 2 consoles, 1 executes gulp (to compile sass) and the other (browser-sync).
I appreciate your help in advance.
from jekyll-gulp-sass-browser-sync.
Related Issues (20)
- Would this project add min css/js automation? HOT 2
- Command failed: git rev-list --pretty=raw --max-count=1 HOT 1
- events.js:160 throw er; // Unhandled 'error' event HOT 5
- Purpose of duplicate css dest? HOT 1
- Bourbon import is failing
- Issue - Gulp file not found
- Injecting dependencies with bower
- Try to add folder with htmls which I want to use with AJAX to the browsersync baseDir
- jekyll-build error HOT 3
- How to send only main.css file to the _site folder and send *.js files to one bundle.js into _site folder ?
- 'gulp error' HOT 3
- Task 'pug' is not in your gulpfile HOT 2
- Browser sync doesn't work on pages that aren't my index .html HOT 1
- License not immediately clear
- adding es2015
- How to disable the browser sync
- Gulp does not compile after direct editing on includes
- Update Gulpfile.js 3 to 4 HOT 4
- [Resolved] Gulp update and npm install issue on windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-gulp-sass-browser-sync.