pbarbiero / enhanced-electron-react-boilerplate

Modern and somewhat opinionated react+electron+webpack boilerplate
MIT License
61 stars 13 forks source link

Webpack loader config for bootstrap and possibly other loaders #14

Open dkoodev opened 6 years ago

dkoodev commented 6 years ago

In the file: webpack.dev.config.js

Compiled bootstrap from the node module 'bootstrap' didn't work until I made this change.

The CSS loader change from

{ test: /\.css$/, use: [{ loader: 'style-loader' }, { loader: 'css-loader' }], include: defaultInclude },

to

{ test: /\.css$/, loader:[ 'style-loader', 'css-loader' ] },

tonylukasavage commented 4 years ago

Encountered the same problem and @dkoodev's workaround fixed it for me. Thanks!

FYI, I had to make the same change with the file-loader settings in the dev config to get them to work as well.