From 44610f1723758968c308d8260a76cb9bb1634851 Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Sun, 12 Nov 2023 18:14:19 +0100 Subject: [PATCH] chore(module): clean up --- .env.example | 4 ++++ .vscode/launch.json | 16 ++++++++++------ src/utils/options.mjs | 4 +++- 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000..aee4f4d3d9 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +# BUILDER= # webpack | vite +# BASE_URL= +# HOST= +# PORT= diff --git a/.vscode/launch.json b/.vscode/launch.json index 354524dceb..5fbb0da3d5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,6 +2,7 @@ "version": "0.2.0", "configurations": [ { + "envFile": "${workspaceFolder}/.env", "presentation": { "group": "nuxt" }, @@ -11,6 +12,7 @@ "type": "node-terminal" }, { + "envFile": "${workspaceFolder}/.env", "presentation": { "group": "nuxt" }, @@ -20,6 +22,7 @@ "type": "node-terminal" }, { + "envFile": "${workspaceFolder}/.env", "presentation": { "group": "nuxt" }, @@ -29,20 +32,21 @@ "type": "node-terminal" }, { + "envFile": "${workspaceFolder}/.env", "presentation": { - "group": "tests" + "group": "others" }, - "command": "npm run vitest:dev", - "name": "Debug: vitest:dev", + "command": "npm run start", + "name": "Serve (dist)", "request": "launch", "type": "node-terminal" }, { "presentation": { - "group": "others" + "group": "tests" }, - "command": "npm run start", - "name": "Serve (dist)", + "command": "npm run vitest:dev", + "name": "Debug: vitest:dev", "request": "launch", "type": "node-terminal" } diff --git a/src/utils/options.mjs b/src/utils/options.mjs index 0ecf7f8c10..5ce50fbaff 100644 --- a/src/utils/options.mjs +++ b/src/utils/options.mjs @@ -4,6 +4,8 @@ export function getDefaultOptions() { return { debug: false, + crossorigin: undefined, + disableNuxtCritters: true, // If set, `@nuxtjs/critters` will not be integrated. disableNuxtFontaine: false, // If set, `@nuxtjs/fontaine` will not be integrated. disableNuxtImage: false, // If set, `@nuxt/image` will not be integrated. @@ -24,7 +26,7 @@ export function getDefaultOptions() { fonts: [], - targetFormats: null, + targetFormats: undefined, /** * IntersectionObserver rootMargin for Compoennts and Assets