fix: supress A11y warnings for svelte

This commit is contained in:
Igor Randjelovic
2020-11-24 14:13:42 +01:00
committed by Nathan Walker
parent 34987d6662
commit f967606b3a

View File

@@ -35,6 +35,12 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
injectCss: false,
native: true,
},
// Suppress A11y warnings
onwarn(warning, warn) {
if (!/A11y:/.test(warning.message)) {
warn(warning);
}
},
};
});