Skip to content

How to write volofile to perform jshint for all files inside a folder then uglify each and every file to <name>.min.js #175

Description

@SuganyaPL

My folder structure is /com/h/portal/js.
Inside js folder there are 4 folders.Say a,b,c,d
Inside each folder there are set of js files.

i'm able to minify all js files and write into separate folder with the below command
build: {
run: function (d, v, namedArgs) {
//Remove the old dir
v.rm('www-built');
d.resolve(v.spawn('node', ['tools/r.js', '-o', 'tools/build.js'], {
useConsole: namedArgs
}));

    }
}

But i want to run jshint on all files before minifying. how to do that ?

Also is there any way to minify css files using volo ?

Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions