diff --git a/.gitignore b/.gitignore index c34b9ec..00a2afb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/* -Bloodhound-* \ No newline at end of file +Bloodhound-* +dist/ \ No newline at end of file diff --git a/package.json b/package.json index de07c4a..971f99a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "main.js", "scripts": { "start": "set ENV=development & electron .", - "server": "babel-node server.js" + "server": "babel-node server.js", + "build": "webpack --config webpack.config.production.js && electron-packager . Bloodhound --platform=all --arch=all --overwrite" }, "babel": { "presets": [ diff --git a/webpack.config.production.js b/webpack.config.production.js new file mode 100644 index 0000000..29c95a3 --- /dev/null +++ b/webpack.config.production.js @@ -0,0 +1,5 @@ +var config = require('./webpack.config.development.js'); +config.entry.shift(); +config.plugins.shift(); +config.output.publicPath = './dist/'; +module.exports = config; \ No newline at end of file