mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-01 19:45:22 +02:00
nuxt init
This commit is contained in:
parent
79b3985a49
commit
8d3db89327
275 changed files with 13274 additions and 4003 deletions
50
frontend.old/vue.config.js
Normal file
50
frontend.old/vue.config.js
Normal file
|
@ -0,0 +1,50 @@
|
|||
const path = require("path");
|
||||
const manifestJSON = require("./public/manifest.json");
|
||||
const PreloadWebpackPlugin = require("preload-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
transpileDependencies: ["vuetify"],
|
||||
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
|
||||
outputDir: process.env.NODE_ENV === "production" ? "./dist" : "../mealie/web",
|
||||
devServer: {
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: process.env.VUE_APP_API_BASE_URL,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
pluginOptions: {
|
||||
i18n: {
|
||||
locale: "en",
|
||||
fallbackLocale: "en",
|
||||
localeDir: "locales",
|
||||
enableInSFC: true,
|
||||
},
|
||||
webpackBundleAnalyzer: {
|
||||
openAnalyzer: process.env.PREVIEW_BUNDLE,
|
||||
},
|
||||
},
|
||||
configureWebpack: {
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve("src"),
|
||||
},
|
||||
plugins: [new PreloadWebpackPlugin({})],
|
||||
},
|
||||
},
|
||||
pwa: {
|
||||
name: manifestJSON.short_name,
|
||||
themeColor: manifestJSON.theme_color,
|
||||
msTileColor: manifestJSON.background_color,
|
||||
appleMobileWebAppCapable: "yes",
|
||||
appleMobileWebAppStatusBarStyle: "black",
|
||||
manifestCrossorigin: "use-credentials",
|
||||
|
||||
workboxPluginMode: "InjectManifest",
|
||||
workboxOptions: {
|
||||
swSrc: "./src/sw.js",
|
||||
swDest: "service-worker.js",
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue