I have a similar setup in another project , but for some reason it’s not working here. I need a second pair of eyes to help me run down the issue.
Issue
I am using live reload, and can verify it’s working as it relates to changes to my JavaScript, HTML, Liquid, and 1 SCSS file. How can I tell? The output in the Terminal reflect the file(s) I made changes to, then I see the page(s) reload in the browser. Unfortunately, I do not see updates to this page when I make changes to all but 1 SCSS file (the file all of them get imported to). If I quit the Jekyll serve… command, then rerun the command I see the latest SCSS file changes.
Command bundle exec jekyll serve --livereload
Jekyll Verison gem "jekyll", "~> 4.0.0"
Directory & File Setup
src
├── _collections
├── _data
├── _layoutPartials
├── _layouts
├── _plugins
├── assets
├── css
| └── min-styles.scss (only SCSC file that if I update - shown in terminal)
│ └── src
│ ├── common
│ ├── layouts
│ └── navigation
└── js
Contents of min-styles.scss
---
---
@import 'src/common/reset';
@import 'src/common/fonts';
@import 'src/common/global_vars';
@import 'src/common/mixins';
@import 'src/common/extensions';
@import 'src/common/global';
@import 'src/navigation/navGlobal';
@import "src/layouts/home";
.body{
background:green; // this style is compiled just fine
}
Copy that. Original file came directly from the Jekyll website. I picked the _config.yml fileso that I could see all options available. I will take your advice on vendor/ Thank you. Happy to report everything is working great.
Zero config needed. It will bundle and minify and generate source maps. Point it at your app entry point and you’ll get a single JS file from all your modules and libraries. Or point at a directory and get a file for each.
And of course linting with eslint.
npx eslint .
I don’t know about alternatives for image processing.