Skip to content

Commit

Permalink
apply eruda vite plugin only in build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jul 7, 2023
1 parent 19da72f commit 365ed23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function eruda(debug = undefined) {
const erudaSrc = readFileSync("./node_modules/eruda/eruda.js", "utf-8");
return {
name: "vite-plugin-eruda",
apply: "build",
transformIndexHtml(html) {
const tags = [
{
Expand Down

0 comments on commit 365ed23

Please sign in to comment.