diff --git a/package.json b/package.json index 08f675a..63087a4 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "build": "rollup -c && rollup -c rollup.config.min.js", "build-docs": "jsdoc2md -f src/dat/gui/GUI.js src/dat/controllers/Controller.js src/dat/controllers/NumberController.js | replace-between --target API.md --token API", "lint": "eslint src", + "version": "npm run build && git add -A build", "postversion": "git push && git push --tags && npm publish" }, "repository": { diff --git a/rollup.config.js b/rollup.config.js index 445c07a..93d0984 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -37,7 +37,10 @@ export default { }, plugins: [ resolve(), - sass({options: {outputStyle: 'compressed'}}), + sass({ + output: 'build/dat.gui.css', + options: {outputStyle: 'compressed'} + }), babel({ plugins: ['external-helpers'], exclude: 'node_modules/**'