2020-02-18 08:57:00 +01:00
|
|
|
const path = require("path");
|
|
|
|
|
2018-05-18 11:28:29 +02:00
|
|
|
module.exports = {
|
2020-02-18 08:57:00 +01:00
|
|
|
outputDir: path.resolve(__dirname, "../priv/static"),
|
2020-10-13 20:39:59 +02:00
|
|
|
chainWebpack: (config) => {
|
|
|
|
// remove the prefetch plugin
|
|
|
|
config.plugins.delete("prefetch");
|
|
|
|
},
|
2021-05-06 17:20:54 +02:00
|
|
|
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...
|
|
|
|
},
|
|
|
|
},
|
2020-10-13 20:39:59 +02:00
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
scss: {
|
2021-04-13 19:30:25 +02:00
|
|
|
prependData: `@import "@/variables.scss";`,
|
2020-10-13 20:39:59 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-05-18 11:28:29 +02:00
|
|
|
};
|