1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2025-01-03 13:54:38 +00:00
mobilizon/js/vue.config.js
Thomas Citharel 3ff7bc4512
WIP vue-cli 5
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-04 13:32:07 +02:00

25 lines
677 B
JavaScript

const path = require("path");
module.exports = {
outputDir: path.resolve(__dirname, "../priv/static"),
chainWebpack: (config) => {
// remove the prefetch plugin
config.plugins.delete("prefetch");
},
pwa: {
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...
},
},
css: {
loaderOptions: {
scss: {
prependData: `@import "@/variables.scss";`,
},
},
},
};