mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 08:22:50 +00:00
f480936eb4
The `quietDeps` sass option isn't working yet Signed-off-by: Thomas Citharel <tcit@tcit.fr>
31 lines
810 B
JavaScript
31 lines
810 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...
|
|
},
|
|
manifestOptions: {
|
|
orientation: "portrait-primary",
|
|
},
|
|
},
|
|
css: {
|
|
loaderOptions: {
|
|
scss: {
|
|
additionalData: `@import "@/variables.scss";`,
|
|
sassOptions: {
|
|
quietDeps: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|