enhanced-electron-react-boilerplate icon indicating copy to clipboard operation
enhanced-electron-react-boilerplate copied to clipboard

Webpack loader config for bootstrap and possibly other loaders

Open dkoodev opened this issue 7 years ago • 1 comments
trafficstars

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' ] },

dkoodev avatar Jun 14 '18 00:06 dkoodev

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.

tonylukasavage avatar Jun 08 '20 23:06 tonylukasavage