2020-02-18 07:57:00 +00:00
|
|
|
const path = require("path");
|
|
|
|
|
2018-05-18 09:28:29 +00:00
|
|
|
module.exports = {
|
2020-02-18 07:57:00 +00:00
|
|
|
outputDir: path.resolve(__dirname, "../priv/static"),
|
2020-10-13 18:39:59 +00:00
|
|
|
chainWebpack: (config) => {
|
|
|
|
// remove the prefetch plugin
|
|
|
|
config.plugins.delete("prefetch");
|
|
|
|
},
|
2022-04-21 13:50:58 +00:00
|
|
|
configureWebpack: (config) => {
|
|
|
|
const miniCssExtractPlugin = config.plugins.find(
|
|
|
|
(plugin) => plugin.constructor.name === "MiniCssExtractPlugin"
|
|
|
|
);
|
|
|
|
if (miniCssExtractPlugin) {
|
|
|
|
miniCssExtractPlugin.options.linkType = false;
|
|
|
|
}
|
|
|
|
},
|
2021-05-06 15:20:54 +00: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...
|
|
|
|
},
|
2021-05-12 16:06:37 +00:00
|
|
|
manifestOptions: {
|
|
|
|
orientation: "portrait-primary",
|
|
|
|
},
|
2021-05-06 15:20:54 +00:00
|
|
|
},
|
2020-10-13 18:39:59 +00:00
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
scss: {
|
2021-11-02 18:47:54 +00:00
|
|
|
additionalData: `
|
|
|
|
@use "@/variables.scss" as *;
|
|
|
|
`,
|
2021-06-04 11:30:05 +00:00
|
|
|
sassOptions: {
|
|
|
|
quietDeps: true,
|
|
|
|
},
|
2020-10-13 18:39:59 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2018-05-18 09:28:29 +00:00
|
|
|
};
|