Fix fomantic

This commit is contained in:
wvffle 2022-07-20 18:49:11 +00:00 committed by Georg Krause
commit c56627bfcf
5 changed files with 43 additions and 62 deletions

View file

@ -45,15 +45,7 @@ export default defineConfig(() => ({
navigateFallback: 'index.html',
webManifestUrl: '/front/manifest.json'
}
}),
{
name: 'fix-fomantic-ui-css',
transform (src, id) {
if (id.includes('fomantic-ui-css') && id.endsWith('.min.js')) {
return `import jQuery from 'jquery';${src}`
}
}
}
})
],
server: { port, hmr },
resolve: {