Skip to content

Question: use different functions for different code blocks #21

Open
@rowild

Description

@rowild

In my case, i have a js block with vendor files, all in ES5 and already ugli-/minified. They only need to be concatenated and renamed to a "vendor.js" file using a simple gulp-concat() command in a separate gulp-task "vendor-js".

In a second block, though, I have my own stuff, written in ES2015. This block needs a different gulp task, with babel enabled, to transpile them to ES5 again. The gulp task is called "js-es6".

My question: is it possible to tell useref to use one process for "vendor-js" and one for "js-es6"?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions