-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new url to matching url patterns in manifest.json and update form…
…atting
- Loading branch information
Showing
5 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
import vue from "@vitejs/plugin-vue"; | ||
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify"; | ||
import vue from "@vitejs/plugin-vue" | ||
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify" | ||
|
||
import { crx } from "@crxjs/vite-plugin"; | ||
import { defineConfig } from "vite"; | ||
import { fileURLToPath, URL } from "node:url"; | ||
import { crx } from "@crxjs/vite-plugin" | ||
import { defineConfig } from "vite" | ||
import { fileURLToPath, URL } from "node:url" | ||
|
||
// Node >=17 | ||
import manifest from "./manifest.json" assert { type: "json" }; | ||
import manifest from "./manifest.json" assert { type: "json" } | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
vue({ | ||
template: { transformAssetUrls }, | ||
template: { transformAssetUrls } | ||
}), | ||
vuetify({ | ||
autoImport: true, | ||
autoImport: true | ||
}), | ||
crx({ | ||
manifest: { | ||
...manifest, | ||
background: { ...manifest.background, type: "module" }, | ||
}, | ||
}), | ||
background: { ...manifest.background, type: "module" } | ||
} | ||
}) | ||
], | ||
define: { "process.env": {} }, | ||
resolve: { | ||
alias: { | ||
"@": fileURLToPath(new URL("./src", import.meta.url)), | ||
"@": fileURLToPath(new URL("./src", import.meta.url)) | ||
}, | ||
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"], | ||
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"] | ||
}, | ||
server: { | ||
port: 3000, | ||
}, | ||
}); | ||
port: 3000 | ||
} | ||
}) |