Skip to content

Commit

Permalink
Added sri
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Sep 2, 2024
1 parent 9132e70 commit 5b71905
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 0 deletions.
292 changes: 292 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@eslint/js": "^9.9.1",
"@fontsource/open-sans": "^5.0.29",
"@small-tech/vite-plugin-sri": "^1.0.1",
"@sveltejs/vite-plugin-svelte": "^2.5.2",
"@types/codemirror": "5.60.15",
"@types/showdown": "^2.0.6",
Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sri from "@small-tech/vite-plugin-sri";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import legacy, { cspHashes } from "@vitejs/plugin-legacy";
import { readFileSync } from "fs";
Expand Down Expand Up @@ -40,6 +41,7 @@ export default defineConfig(({ mode }) => {
}),
legacy(),
splitVendorChunkPlugin(),
sri(),
svelte({
configFile: "../svelte.config.js",
}),
Expand Down

0 comments on commit 5b71905

Please sign in to comment.