Some refactoring in the build scripts
This commit is contained in:
parent
32853ea0d8
commit
5adf72dcc1
|
@ -18,8 +18,8 @@
|
||||||
},
|
},
|
||||||
"bugs": "https://github.com/josdejong/jsoneditor/issues",
|
"bugs": "https://github.com/josdejong/jsoneditor/issues",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "react-dev-server --build; uglifyjs public/bundle.js -o public/bundle.min.js",
|
"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",
|
"watch": "react-dev-server --static src --index develop.html",
|
||||||
"test": "mocha test"
|
"test": "mocha test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue