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

SCSS enhancement for local build #85

Open
rosscyoga opened this issue Sep 4, 2017 · 1 comment
Open

SCSS enhancement for local build #85

rosscyoga opened this issue Sep 4, 2017 · 1 comment

Comments

@rosscyoga
Copy link

First off, thanks for all your work! Really love the ease of build using your framework!

I'd like to continue to use Jalpc for other projects and would like the capability of modifying SCSS file with live updating on the local server. I added my own custom.css file to the "static/assets/css" folder and added it to the file.conf.js file. Works great except that I am limited to CSS and that it doesn't offer live updating unless I'm missing something. When I make a change, I stop "bundle exec jekyll serve" (Windows 10, ugh...) and run "npm run build" to rebuild the minified CSS.

I really prefer using SCSS, which seems to be built in, but I haven't been able to get it to work on top of the serve command.

Requested Local Workflow:

  1. Start jekyll serve/watch (using enhanced method)
  2. _sass/_custom.scss - modify
  3. CSS is compiled from SCSS (automatic)
  4. CSS is minified into build (automatic)
  5. Site updates live on local

Any help would be appreciated!

@jarrekk
Copy link
Owner

jarrekk commented Sep 5, 2017

Thanks for this advice, SCSS is better for changing some styles with established styles, since Jekyll can auto generate static files to _site folder with command jekyll server [--watch] and Jekyll support SCSS, I think you can add your customised SCSS files like this example, but you need to add CSS files which compiled from SCSS files to HTML header and it can't be compressed by node package.

Later I will add this feature for others to customise Jalpc conveniently and make CSS compress work together with SCSS.

jarrekk added a commit that referenced this issue Sep 5, 2017
jarrekk added a commit that referenced this issue Sep 5, 2017
jarrekk added a commit that referenced this issue Sep 5, 2017
Former-commit-id: 1fd6fd6
Former-commit-id: fb7f982
jarrekk added a commit that referenced this issue Sep 6, 2017
Former-commit-id: 07da083
Former-commit-id: fc56b61
jarrekk added a commit that referenced this issue Sep 6, 2017
Former-commit-id: 1fd6fd6
Former-commit-id: fb7f982
Former-commit-id: e1a3d13
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