fix: supress A11y warnings for svelte

This commit is contained in:
Igor Randjelovic
2020-11-24 14:13:42 +01:00
parent 86a46b46cd
commit 1ede4dbf5f

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);
}
},
};
});