Skip to content

Commit

Permalink
Build CSS into separate bundles for each window
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayuki0x committed Dec 21, 2019
1 parent 609eb27 commit b105762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/mainWindow/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if (!process.env.HOT) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = '../dist/style.css';
link.href = '../dist/mainWindow.css';
// HACK: Writing the script path should be done with webpack
document.getElementsByTagName('head')[0].appendChild(link);
}
Expand Down
2 changes: 1 addition & 1 deletion configs/webpack.config.renderer.prod.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default merge.smart(baseConfig, {
}),

new MiniCssExtractPlugin({
filename: 'style.css'
filename: '[name].css'
}),

new BundleAnalyzerPlugin({
Expand Down

0 comments on commit b105762

Please sign in to comment.