Configure compat config

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-11-17 18:23:48 +01:00
parent 64eb52c795
commit 966d9c1c67
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 16 additions and 0 deletions

View File

@ -5,6 +5,22 @@ module.exports = {
chainWebpack: (config) => {
// remove the prefetch plugin
config.plugins.delete("prefetch");
config.resolve.alias.set("vue", "@vue/compat");
config.module
.rule("vue")
.use("vue-loader")
.tap((options) => {
return {
...options,
compilerOptions: {
compatConfig: {
MODE: 2,
},
},
};
});
},
pwa: {
themeColor: "#ffd599", //not required for service worker, but place theme color here if manifest.json doesn't change the color