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

[ENHANCEMENT] Target html folder and not a specific file #20

Open
marocas opened this issue Dec 18, 2015 · 1 comment
Open

[ENHANCEMENT] Target html folder and not a specific file #20

marocas opened this issue Dec 18, 2015 · 1 comment

Comments

@marocas
Copy link

marocas commented Dec 18, 2015

I have a folder with my html pages, and on every project i make, it woold be good to target all files with the extention *.html.
To generate a favicon, or if i run my default tasks that include the favicon task, if the image dosent exist, cant it pass to the next tasks instead of aborting the rest of my tasks?

favicons: {
        src: '<%= cfg.root %><%= cfg.src.images %>favicon/*.png',
or
        src: '<%= cfg.root %><%= cfg.src.images %>favicon/favicon.*',
if dosent exist, continue tasks...
        dest: '<%= cfg.root %><%= cfg.dest.images %>favicon/',
        html: [{
            expand: true,
            cwd: '<%= cfg.root %><%= cfg.dest.html %>',
            src: ['*.html'],
            dest: '<%= cfg.root %><%= cfg.dest.html %>'
        }],
}
```javascript
@phbernard
Copy link
Contributor

Thank your for the suggestion. You're totally right, there is no need to generate the images all the time.

The equivalent Gulp plugin actually work that way: images generation and HTML processing are managed by two distinct entry points.

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

No branches or pull requests

2 participants