Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple targets option #17

Open
ericdallo opened this issue Apr 10, 2018 · 1 comment
Open

Multiple targets option #17

ericdallo opened this issue Apr 10, 2018 · 1 comment

Comments

@ericdallo
Copy link

ericdallo commented Apr 10, 2018

There could be a way of create multiples targets with the same source file, so i will not have a big file with all js, and i only need to import in my html the file that i want. It will only minify the file, not group all files in one.

Something like this example:

:minify-assets [[:js {
    :source ["source/"] 
    :target "target/",
    :pattern "*.min.js"}]]

from:

source
├── login.js
└── home.js

to

target
├── login.min.js
└── home.min.js

What do you think about it?

@yogthos
Copy link
Owner

yogthos commented Apr 11, 2018

That looks reasonable to me, would you be up for doing a PR to add the feature?

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

No branches or pull requests

2 participants