Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Minifying stitched project? #33

Open
Hubro opened this issue Feb 4, 2012 · 1 comment
Open

Minifying stitched project? #33

Hubro opened this issue Feb 4, 2012 · 1 comment

Comments

@Hubro
Copy link

Hubro commented Feb 4, 2012

Is this possible with stitch? If not, would it be possible to implement?

@rprieto
Copy link

rprieto commented Nov 20, 2012

Not sure if it's something Stitch will do in the future... in the meantime I'm doing something like this for a static build:

var fs = require('fs');
var stitch = require('stitch');
var minify = require('minifyjs');

var pack = stitch.createPackage({
    paths: [__dirname + '/src']
});

pack.compile(function (err, source) {
    minify.minify(source, { engine: 'yui' }, function (err, code) {
        if (err) throw err;
        fs.writeFile('out.js', code, function (err) {
            // ...
        });
    });
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants