Add SCSS build system with automated CSS minification#34
Draft
Add SCSS build system with automated CSS minification#34
Conversation
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add SCSS build system and move current CSS file
Add SCSS build system with automated CSS minification
Nov 13, 2025
Contributor
|
@copilot since this is a static website served through GitHub.io pages, we need to also push the minified css. |
- Remove css/ from .gitignore to commit minified CSS for GitHub Pages - Ignore only CSS source maps (css/*.map) - Add CI step to verify committed CSS matches SCSS source - Ensures CSS is always kept up to date with SCSS changes Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Contributor
Author
Fixed in cb827b5. The minified CSS is now committed to the repository for GitHub Pages. Also added a CI verification step that checks if the committed CSS matches the SCSS source, ensuring it stays up to date with any SCSS changes. |
- Update README.md description - Update package.json description - Update .gitignore comment - Aligns with current domain in CNAME file Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a SCSS build pipeline that compiles and minifies CSS for production serving on GitHub Pages.
Changes
Build system: Added npm/sass toolchain for SCSS compilation
scss/main.scss→css/main.min.css(compressed)npm run build:cssandnpm run watch:cssFile migration: Moved
css/main.css→scss/main.scssviagit mvgit log --follow scss/main.scsstraces back to originalCI integration: Updated workflow to build CSS before Jekyll
npm ci && npm run build:cssConfiguration:
.gitignore: Excludesnode_modules/,package-lock.json, and CSS source maps (css/*.map)css/main.min.cssis committed to repository for GitHub Pages servingindex.html: Updated reference tocss/main.min.cssDomain update: Updated all references from
cmder.nettocmder.appBuild Example
npm install npm run build:css # Generates css/main.min.css (4KB minified) from scss/main.scssCI/CD Validation
The CI workflow automatically verifies that the committed minified CSS is up to date with the SCSS source. If a developer modifies SCSS without rebuilding the CSS, the build will fail with a clear error message indicating that
npm run build:cssneeds to be run and the updated CSS committed.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.