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");
|
|
|
|
},
|
2022-04-21 15:50:58 +02:00
|
|
|
configureWebpack: (config) => {
|
|
|
|
const miniCssExtractPlugin = config.plugins.find(
|
|
|
|
(plugin) => plugin.constructor.name === "MiniCssExtractPlugin"
|
|
|
|
);
|
|
|
|
if (miniCssExtractPlugin) {
|
|
|
|
miniCssExtractPlugin.options.linkType = false;
|
|
|
|
}
|
|
|
|
},
|
2021-05-06 17:20:54 +02:00
|
|
|
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
|
2021-05-06 17:20:54 +02:00
|
|
|
workboxPluginMode: "InjectManifest",
|
|
|
|
workboxOptions: {
|
|
|
|
// swSrc is required in InjectManifest mode.
|
|
|
|
swSrc: "./src/service-worker.ts",
|
|
|
|
// ...other Workbox options...
|
|
|
|
},
|
2021-05-12 18:06:37 +02:00
|
|
|
manifestOptions: {
|
2023-04-14 16:49:13 +02:00
|
|
|
short_name: "FOMO",
|
2021-05-12 18:06:37 +02:00
|
|
|
orientation: "portrait-primary",
|
|
|
|
},
|
2021-05-06 17:20:54 +02:00
|
|
|
},
|
2020-10-13 20:39:59 +02:00
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
scss: {
|
2021-11-02 19:47:54 +01:00
|
|
|
additionalData: `
|
|
|
|
@use "@/variables.scss" as *;
|
|
|
|
`,
|
2021-06-04 13:30:05 +02:00
|
|
|
sassOptions: {
|
|
|
|
quietDeps: true,
|
|
|
|
},
|
2020-10-13 20:39:59 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-05-18 11:28:29 +02:00
|
|
|
};
|