Skip to content

Commit

Permalink
different css per entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
hardchor committed May 26, 2016
1 parent 40efa48 commit d9bb226
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/main/createMainWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export default function createWindow() {
mainWindow.webContents.on('will-navigate', handleRedirect);
mainWindow.webContents.on('new-window', handleRedirect);

// if (process.env.NODE_ENV === 'development') {
mainWindow.openDevTools();
// }
if (process.env.NODE_ENV === 'development') {
mainWindow.openDevTools();
}

if (process.platform === 'darwin') {
template = [{
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/assets/html/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if (!process.env.HOT) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = '../../style.css';
link.href = '../../main/style.css';
document.write(link.outerHTML);
}
}());
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/assets/html/menubar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if (!process.env.HOT) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = '../../style.css';
link.href = '../../menubar/style.css';
document.write(link.outerHTML);
}
}());
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const config = {
warnings: false,
},
}),
new ExtractTextPlugin('style.css', { allChunks: true }),
new ExtractTextPlugin('[name]/style.css', { allChunks: true }),
],

target: 'electron-renderer',
Expand Down

0 comments on commit d9bb226

Please sign in to comment.