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

Support for files: [] ? #38

Open
khalwat opened this issue Mar 16, 2015 · 0 comments
Open

Support for files: [] ? #38

khalwat opened this issue Mar 16, 2015 · 0 comments

Comments

@khalwat
Copy link

khalwat commented Mar 16, 2015

First, thanks for your plugin, I'm using it to great effect on my sites.

I have a case where I want to apply the same search/replaced to multiple files, but each with a distinct destination (with a prefix appended). It'd be convenient if I could do something like this:

    replace: {
        ssl_html: {
            files: [
                {src: '<%= pkg.template_path %>common_html.group/html_head_end.html', dest: '<%= pkg.template_path %>common_html.group/ssl_html_head_end.html'},
                {src: '<%= pkg.template_path %>common_html.group/main_menu.html', dest: '<%= pkg.template_path %>common_html.group/ssl_main_menu.html'},
                {src: '<%= pkg.template_path %>common_html.group/info_footer.html', dest: '<%= pkg.template_path %>common_html.group/ssl_info_footer.html'},
                {src: '<%= pkg.template_path %>common_html.group/free_content_banner.html', dest: '<%= pkg.template_path %>common_html.group/ssl_free_content_banner.html'},
                {src: '<%= pkg.template_path %>common_html.group/free_content_guts.html', dest: '<%= pkg.template_path %>common_html.group/ssl_free_content_guts.html'},
                {src: '<%= pkg.template_path %>common_html.group/free_content_tabs.html', dest: '<%= pkg.template_path %>common_html.group/ssl_free_content_tabs.html'},
            ],
            replacements: [
                {
                    from: 'http://cssjs.crushlivepoker.net/',
                    to: '/site/'
                },
                {
                    from: 'http://cssjs.CrushLivePoker.net/',
                    to: '/site/'
                },
                },
            ],
        },
    },

...where it can accept an array of files with src: and dest: but the same replacements applied to each. Unless I'm doing something wrong, it appears to not be possible currently?

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

1 participant