From 60a640e1ba52dea25b620d896b7299ee4d9352f5 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 3 Apr 2023 22:20:10 +0200 Subject: [PATCH] [vite] rm old vue.config.js --- app/vue.config.js | 90 ----------------------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 app/vue.config.js diff --git a/app/vue.config.js b/app/vue.config.js deleted file mode 100644 index f00c0c16..00000000 --- a/app/vue.config.js +++ /dev/null @@ -1,90 +0,0 @@ -const webpack = require('webpack') -const fs = require('fs') - -const dateFnsLocales = [ - 'ar', - 'ar-DZ', // for `kab` - 'bn', // for 'bn_BD' - 'ca', // for 'ca' & 'oc' - 'cs', - 'da', - 'de', - 'el', - 'en-GB', // for 'en' & 'ne' - 'eo', - 'es', - 'eu', - 'fa-IR', - 'fi', - 'fr', // for 'fr' & 'br' - 'gl', - 'he', - 'hi', - 'hu', - 'id', - 'it', - 'lt', - 'mk', - 'nb', // for 'nb_NO' - 'nl', - 'oc', - 'pl', - 'pt', - 'pt-BR', - 'ru', - 'sl', - 'sv', - 'tr', - 'uk', - 'zh_CN' // for 'zh_Hans' -] - -module.exports = { - configureWebpack: { - plugins: [ - // Will limit the available locales so webpack won't generate chunks for every - // locales found in `date-fns/locales/` but only those listed. - new webpack.ContextReplacementPlugin( - /date-fns[/\\]/, - new RegExp(`[/\\\\](${dateFnsLocales.join('|')})[/\\\\]index.js$`) - ) - ] - }, - pluginOptions: { - i18n: { - locale: 'en', - fallbackLocale: 'en', - localeDir: 'src/i18n/locales', - enableInSFC: false - } - }, - css: { - loaderOptions: { - sass: { - additionalData: '@import "@/scss/_variables.scss";' - } - } - }, - publicPath: '/yunohost/admin', - devServer: process.env.NODE_ENV === 'development' - ? { - public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), - https: false, - allowedHosts: 'all', - proxy: { - '^/yunohost': { - target: `http://${process.env.VUE_APP_IP}`, - ws: true, - logLevel: 'info' - } - }, - static: { - watch: { - ignored: /node_modules/, - aggregateTimeout: 300, - poll: 1000 - } - } - } - : {} -}