Some refactoring in the build scripts

This commit is contained in:
jos 2016-07-13 15:09:56 +02:00
parent 32853ea0d8
commit 5adf72dcc1
3 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@
},
"bugs": "https://github.com/josdejong/jsoneditor/issues",
"scripts": {
"build": "react-dev-server --build; uglifyjs public/bundle.js -o public/bundle.min.js",
"watch": "react-dev-server",
"build": "react-dev-server --static dist --build; mv dist/bundle.js dist/jsoneditor.js; uglifyjs dist/jsoneditor.js -o dist/jsoneditor.min.js; cp src/jsoneditor.css dist",
"watch": "react-dev-server --static src --index develop.html",
"test": "mocha test"
},
"dependencies": {