nixos-config/modules/services/accentor/no_caching_in_nix.patch
Charlotte Van Petegem 6933c7bc3f
Update accentor
2022-02-25 15:11:26 +01:00

21 lines
692 B
Diff

diff --git a/vue.config.js b/vue.config.js
index 5ec914b..4d09b24 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -14,7 +14,16 @@ module.exports = {
},
},
},
+ configureWebpack: config => {
+ config.cache = process.env.IN_NIX !== "true";
+ },
chainWebpack: (config) => {
+ config.module.rule("js").use("babel-loader").tap((opt) =>
+ Object.assign(opt, { cacheDirectory: process.env.IN_NIX !== "true" })
+ );
+ config.plugin("eslint").tap((args) =>
+ [Object.assign(args[0], { cache: process.env.IN_NIX !== "true" })]
+ );
["vue-modules", "vue", "normal-modules", "normal"].forEach((match) => {
config.module
.rule("scss")