From 4bfbb9aa2e9519c6ca1f4417610070ea44e3444d Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 28 Dec 2021 14:39:20 +0000 Subject: [PATCH] Migrate to Vite from webpack. --- public/index.html => index.html | 20 +- package.json | 20 +- src/App.vue | 5 +- src/components/Navigation.vue | 2 +- src/components/Preferences.vue | 6 +- src/components/VideoItem.vue | 6 +- src/main.js | 2 +- vite.config.js | 21 + yarn.lock | 8219 +------------------------------ 9 files changed, 276 insertions(+), 8025 deletions(-) rename public/index.html => index.html (52%) create mode 100644 vite.config.js diff --git a/public/index.html b/index.html similarity index 52% rename from public/index.html rename to index.html index b2bbc548..d21a97a6 100644 --- a/public/index.html +++ b/index.html @@ -4,18 +4,13 @@ - - - <%= htmlWebpackPlugin.options.title %> + + + Piped - - + + We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. - Please enable it to continue.We're sorry but Piped doesn't work properly without JavaScript enabled. Please enable it to + continue.
+ diff --git a/package.json b/package.json index 19db7317..ce0ac74e 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "version": "0.1.0", "private": true, "scripts": { - "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "lint": "vue-cli-service lint" + "serve": "vite", + "build": "vite build", + "preview": "vite preview" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.36", @@ -13,7 +13,6 @@ "@fortawesome/free-solid-svg-icons": "^5.15.4", "@fortawesome/vue-fontawesome": "^3.0.0-5", "core-js": "3.20.1", - "css-loader": "^6.5.1", "dompurify": "^2.3.4", "hotkeys-js": "^3.8.7", "javascript-time-ago": "^2.3.10", @@ -27,19 +26,16 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "@intlify/vue-i18n-loader": "^4.1.0", - "@vue/cli-plugin-babel": "^4.5.15", - "@vue/cli-plugin-eslint": "^4.5.15", - "@vue/cli-plugin-pwa": "^4.5.15", - "@vue/cli-service": "^4.5.15", + "@intlify/vite-plugin-vue-i18n": "^3.2.1", + "@vitejs/plugin-vue": "^2.0.1", "@vue/compiler-sfc": "3.2.26", "babel-eslint": "^10.1.0", "eslint": "^7.32.0", - "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-vue": "^7.20.0", - "vue-cli-plugin-i18n": "^2.3.1", - "vue-cli-plugin-windicss": "~1.1.2" + "prettier": "^2.5.1", + "vite": "^2.7.8", + "vite-plugin-windicss": "^1.6.1" }, "eslintConfig": { "root": true, diff --git a/src/App.vue b/src/App.vue index 09e509ed..a503fddb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,7 +20,7 @@