Repository navigation
Add SCSS hot-reloading compilation for Hugo docs - #226
Merged
Merged
Conversation
Correct minor errors in forms.md
Hotfix: update clean css
Member
|
So awesome, looks great to me! Thank you for adding this in, I think it'll make developing new styles so much easier. |
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.
Brief description
Add SCSS hot-reloading compilation for Hugo docs with
npm run devcommand.Developer Certificate of Origin
Further details
chokidarandconcurrentlydev-dependencies to watchsrc/file changes (chokidar) and run multiple node-scripts at once (concurrently).build/hot-reload.jswhich is almost the same compile function asbuild/build.jsexcept that there is less CSS processing (only autoprefixed CSS is applied).log()function as a small module, because it's now used by 2 different files.build/constants.js, because file-paths are now re-used across 2 files.Please note that
build/hot-reload.jswill only update thepaper.cssfile on thedocs/static/assetsfolder (/distfolder will stay untouched, as this is a different script that is being run to generate this output).