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

chore: Enhance Webpack configuration and remove unused dependencies #67

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

warnyul
Copy link
Owner

@warnyul warnyul commented Dec 2, 2024

  • Added inline-script-csp-html-webpack-plugin for improved CSP management with inline script support.
  • Removed unused dependencies and cleaned up package-lock.json.
  • Updated SCSS for better modularity and code readability.
  • Merged linkedData.ejs into index.ejs to simplify JSON-LD implementation.
  • Enhanced HtmlWebpackPlugin minification settings and added support for processing JSON-LD scripts.
  • Improved CSP configuration with stricter hashing and enabled script-src and style-src hashing.
  • Optimized Terser configuration for better compression with additional passes.

@warnyul warnyul self-assigned this Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

Visit the preview URL for this PR (updated for commit 76f6e75):

https://bvarga-fe600--pr67-csp-imp-ghzg525j.web.app

(expires Mon, 09 Dec 2024 17:11:14 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a3b1098a9eaf0750a134a339972f1df2a3969a8d

Set up CSP using CspHtmlWebpackPlugin to enhance security by restricting sources for scripts, styles, images, fonts, and connections.
- Added `inline-script-csp-html-webpack-plugin` for improved CSP management with inline script support.
- Removed unused dependencies and cleaned up `package-lock.json`.
- Updated SCSS for better modularity and code readability.
- Merged `linkedData.ejs` into `index.ejs` to simplify JSON-LD implementation.
- Enhanced `HtmlWebpackPlugin` minification settings and added support for processing JSON-LD scripts.
- Improved CSP configuration with stricter hashing and enabled `script-src` and `style-src` hashing.
- Optimized Terser configuration for better compression with additional passes.
@warnyul warnyul merged commit 36f58cb into main Dec 2, 2024
2 checks passed
@warnyul warnyul deleted the csp-imp branch December 2, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant