Create build when publishing

This commit is contained in:
Basti 2017-06-12 18:01:05 +02:00
parent 798ed2a16f
commit 3918ec753d

View File

@ -6,7 +6,8 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack -w", "dev": "webpack -w",
"build": "NODE_ENV=production webpack" "build": "NODE_ENV=production webpack",
"prepublish": "npm run build && git add build"
}, },
"author": "Kosmos Contributors <mail@kosmos.org> (https://kosmos.org)", "author": "Kosmos Contributors <mail@kosmos.org> (https://kosmos.org)",
"license": "MIT", "license": "MIT",