Skip to content

Commit 03df6c5

Browse files
committed
Add minified build
1 parent 525c9cc commit 03df6c5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

build/tarantino.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"request": "^2.79.0",
2626
"rollup": "^0.36.4",
2727
"rollup-plugin-commonjs": "^5.0.5",
28+
"rollup-plugin-uglify": "^1.0.1",
2829
"uglify-js": "^2.7.4",
2930
"vows": "^0.8.1"
3031
},
@@ -35,7 +36,7 @@
3536
},
3637
"scripts": {
3738
"test": "vows test/server/*/*-test.js --spec",
38-
"build": "rm -f build/** && rollup -c",
39+
"build": "rm -f build/** && rollup -c && rollup -c rollup.minify.config.js",
3940
"preversion": "npm run -s build"
4041
}
4142
}

rollup.minify.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var uglify = require('rollup-plugin-uglify');
2+
var config = require('./rollup.config');
3+
4+
config.plugins.push(uglify());
5+
config.dest = 'build/tarantino.min.js';
6+
7+
module.exports = config;

0 commit comments

Comments
 (0)