pqina / svelte-filepond

🔌 A handy FilePond adapter component for Svelte
MIT License
247 stars 10 forks source link

CSS not working with Webpack 5 #3

Closed briankoudijs closed 3 years ago

briankoudijs commented 3 years ago

Webpack 5 gives an error about missing CSS file. The problems seems to be the path of the @import in the 'svelte-filepond/src/Component.svelte

Current situation @import 'filepond/dist/filepond.min.css';

Working situation: @import '/node_modules/filepond/dist/filepond.min.css';

briankoudijs commented 3 years ago

if you face this issue, try adding modules to the resolve object.

resolve: { modules: [ path.resolve(__dirname + '/node_modules') ] },