-
Notifications
You must be signed in to change notification settings - Fork 305
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
Enhance Build Process, JavaScript Handling, and Image Optimization #8187
Draft
RileySeaburg
wants to merge
47
commits into
main
Choose a base branch
from
rs-lazy-load-images
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
RileySeaburg
force-pushed
the
rs-lazy-load-images
branch
2 times, most recently
from
November 19, 2024 16:29
d73a776
to
149a9de
Compare
RileySeaburg
requested review from
clmedders and
nick-mon1
and removed request for
clmedders
November 20, 2024 15:26
RileySeaburg
changed the title
update image to use rel path
Enhance Build Process, JavaScript Handling, and Image Optimization
Nov 20, 2024
…owsersync to reload on changes
RileySeaburg
force-pushed
the
rs-lazy-load-images
branch
from
November 25, 2024 17:21
c437418
to
8c8e46d
Compare
- Add preview-specific Hugo configuration - Add preview build script - Update package.json to handle preview builds - Fix MIME type issues in preview environment
- Update head.html to use Hugo's resource.Minify for CSS and JS - Add fingerprinting for cache busting - Add integrity hashes for security - Implement proper asset pipeline for custom CSS
- Update head.html to use Hugo's resource.Minify for CSS and JS - Add fingerprinting for cache busting - Add integrity hashes for security - Implement proper asset pipeline for custom CSS
- Add hugo-bin dependency with specific version 0.136.3 - Update build-preview.js to use npx hugo - Remove unnecessary dependencies - Set proper environment variables for hugo build
- Fix resource path handling - Add null checks for resources - Update minification pipeline order - Fix type mismatch in resource transformation
- Fix resource path handling - Add null checks for resources - Update minification pipeline order - Fix type mismatch in resource transformation
- Remove duplicate head tag - Add null check for styles before including them - Fix SCSS pipeline to use proper resource transformations - Clean up template structure and indentation
- Add explicit publishDir and assetDir settings - Configure detailed MIME type handling - Add server headers for content types - Set security settings for media types - Improve asset pipeline configuration
- Add explicit publishDir and assetDir settings - Configure detailed MIME type handling - Add server headers for content types - Set security settings for media types - Improve asset pipeline configuration
- Update build-preview.js to use Hugo version from .hugo-version - Remove hugo-extended npm dependency - Add proper version detection and error handling - Ensure extended version is used for SCSS compilation
- Add markup settings for syntax highlighting and markdown - Update SCSS configuration to use dartsass transpiler - Configure proper media types and headers - Add security settings for content types
- Read Hugo version from .hugo-version file - Use hugo_extended_ prefix for binary name - Set HUGO_VERSION environment variable - Add proper error handling and logging
- Move SCSS config to dedicated sass section - Set dartsass as transpiler - Configure source maps and include paths - Remove duplicate SCSS settings from build section
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.
Here's the completed template with the details integrated:
Summary
This pull request introduces several significant changes aimed at improving the build process, optimizing JavaScript handling, and enhancing image loading. These changes streamline the development workflow, enhance performance, and improve the user experience by prioritizing local resources and introducing dynamic loading.
Preview
Link to Preview
Solution
What the solution is:
The solution improves the build process, introduces enhanced JavaScript handling, and optimizes image management for better performance and user experience.
Why this approach was chosen:
How the change was implemented:
Build Process Updates:
config/gulp/scripts.js
to streamline webpack configurations and improve error handling.package.json
to include new development and build scripts (dev
,dev:js
,dev:sass
, etc.) and updated dependencies.rsbuild
(rsbuild.config.js
) andrspack
(rspack.config.js
) to optimize build settings.Enhanced Image Handling:
shortcodes/img.html
to boost performance.stream-images.js
).Dependency Updates:
@rsbuild/core
and related packages for streamlined build processes.Possible limitations:
rsbuild
andrspack
) may require team members to familiarize themselves with the updated process.How To Test
npm run dev
npm run build