disable the slew of faketweet css warnings

This commit is contained in:
James Shiffer 2020-06-12 00:26:27 -07:00
parent 570c607e12
commit e149d11e59

View File

@ -10,6 +10,8 @@ const alias = { svelte: path.resolve('node_modules', 'svelte') };
const extensions = ['.mjs', '.js', '.json', '.svelte', '.html'];
const mainFields = ['svelte', 'module', 'browser', 'main'];
const onwarn = (warning, handler) => warning.code === 'css-unused-selector' || handler(warning);
module.exports = {
client: {
entry: config.client.entry(),
@ -24,7 +26,8 @@ module.exports = {
options: {
dev,
hydratable: true,
hotReload: true,
hotReload: true,
onwarn
}
}
}
@ -57,7 +60,8 @@ module.exports = {
options: {
css: false,
generate: 'ssr',
dev
dev,
onwarn
}
}
}