Add SCSS build system with automated CSS minification #34
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.