summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-23 23:58:23 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-23 23:58:23 +0200
commit1a99af129427275c22e8276e75fa4b8da6602129 (patch)
tree3b5795301eaee53f0fa6df48b67f0967827fdee3
parent7997f17a8d59a762cb2a26ca96b67822446342d7 (diff)
npm commands
-rw-r--r--package.json7
-rw-r--r--webpack.config.js1
2 files changed, 6 insertions, 2 deletions
diff --git a/package.json b/package.json
index 8e37618..8f530d5 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,12 @@
"main": "index.js",
"private": true,
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "server": "node app/server",
+ "relay": "node app/relay",
+ "build": "webpack -p",
+ "watch": "webpack -w",
+ "client": "webpack"
},
"repository": {
"type": "git",
diff --git a/webpack.config.js b/webpack.config.js
index 3185d2c..70a6209 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -5,7 +5,6 @@ require('dotenv').config()
module.exports = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
entry: './app/client/index.jsx',
- watch: true,
devtool: 'cheap-source-map',
output: {
path: __dirname + '/public',