Skip to content

Commit

Permalink
Added sri
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 5, 2024
1 parent 2943f37 commit ad1d2eb
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 @@ -40,6 +40,7 @@
"devDependencies": {
"@csstools/postcss-global-data": "^2.1.1",
"@fontsource/open-sans": "^5.0.20",
"@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 ad1d2eb

Please sign in to comment.