aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json8
1 files changed, 6 insertions, 2 deletions
diff --git a/package.json b/package.json
index 2fcf507..95aba53 100644
--- a/package.json
+++ b/package.json
@@ -26,11 +26,15 @@
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
+ "babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
- "eslint": "^3.19.0"
+ "eslint": "^3.19.0",
+ "webpack": "^3.6.0"
},
"scripts": {
- "build": "babel --source-maps --out-file ./dist/index.js ./src/index.js",
+ "build-node": "babel --out-file ./dist/index.js ./src/index.js",
+ "build-browser": "webpack --config webpack.config.js",
+ "build": "npm run build-browser && npm run build-node",
"check": "eslint ./src/*"
}
}