mobilizon/js/vue.config.js

44 lines
1.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: {
name: "rotes.potsda.mn Alternative Termine zwischen Stadtschloss und Garnisonkirche",
themeColor: "#ffd599", //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: {
short_name: "Rotes Potsdam",
orientation: "portrait-primary",
},
},
css: {
loaderOptions: {
scss: {
additionalData: `
@use "@/variables.scss" as *;
`,
sassOptions: {
quietDeps: true,
},
},
},
},
};