mobilizon/js/vue.config.js

44 lines
1.1 KiB
JavaScript
Raw Normal View History

const path = require("path");
module.exports = {
outputDir: path.resolve(__dirname, "../priv/static"),
chainWebpack: (config) => {
// remove the prefetch plugin
config.plugins.delete("prefetch");
},
configureWebpack: (config) => {
const miniCssExtractPlugin = config.plugins.find(
(plugin) => plugin.constructor.name === "MiniCssExtractPlugin"
);
if (miniCssExtractPlugin) {
miniCssExtractPlugin.options.linkType = false;
}
},
pwa: {
2023-04-14 19:35:14 +02:00
name: "FOMO",
2023-03-23 20:46:37 +01:00
themeColor: "#000000", //not required for service worker, but place theme color here if manifest.json doesn't change the color
workboxPluginMode: "InjectManifest",
workboxOptions: {
// swSrc is required in InjectManifest mode.
swSrc: "./src/service-worker.ts",
// ...other Workbox options...
},
manifestOptions: {
2023-04-14 16:49:13 +02:00
short_name: "FOMO",
orientation: "portrait-primary",
},
},
css: {
loaderOptions: {
scss: {
additionalData: `
@use "@/variables.scss" as *;
`,
sassOptions: {
quietDeps: true,
},
},
},
},
};