Configure compat config
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
64eb52c795
commit
966d9c1c67
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue