Fix build process

This commit is contained in:
MayaWolf 2017-10-17 22:28:26 +02:00
parent 5c0a53b060
commit 6d9fd35805
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
"main": "main.js",
"license": "MIT",
"devDependencies": {
"electron": "^1.8.0"
"electron": "^1.8.1"
},
"dependencies": {
"keytar": "^4.0.4",

View File

@ -75,6 +75,7 @@ module.exports = function(env) {
const themes = fs.readdirSync(themesDir);
const cssOptions = {use: [{loader: 'css-loader', options: {minimize: dist}}, 'less-loader']};
for(const theme of themes) {
if(!theme.endsWith('.less')) continue;
const absPath = path.join(themesDir, theme);
config.entry.chat.push(absPath);
const plugin = new ExtractTextPlugin('themes/' + theme.slice(0, -5) + '.css');