Skip to content
Permalink
Browse files

fix(template-webpack): use css-loader instead of file-loader (#1036)

This is not as optimal (the CSS ends up embedded in the JS file built by webpack), but it works.
  • Loading branch information
shimaore authored and malept committed Jul 18, 2019
1 parent 57ca285 commit 62b7c195f7ad4df8b23fdc78c0a340488df5a59e
@@ -28,7 +28,7 @@ class WebpackTemplate implements ForgeTemplate {
`@electron-forge/plugin-webpack@${currentVersion}`,
// TODO: Use the @zeit publish once https://github.com/zeit/webpack-asset-relocator-loader/pull/41 has been merged
'@marshallofsound/webpack-asset-relocator-loader@^0.5.0',
'file-loader@^4.0.0',
'css-loader@^3.0.0',
'node-loader@^0.6.0',
'style-loader@^0.23.1',
];
@@ -2,7 +2,7 @@ const rules = require('./webpack.rules');

rules.push({
test: /\.css$/,
use: [{ loader: 'style-loader/url' }, { loader: 'file-loader' }],
use: [{ loader: 'style-loader' }, { loader: 'css-loader' }],
});

module.exports = {

0 comments on commit 62b7c19

Please sign in to comment.
You can’t perform that action at this time.