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

Flatten destination output #61

Closed
nikkwong opened this issue Nov 29, 2015 · 2 comments
Closed

Flatten destination output #61

nikkwong opened this issue Nov 29, 2015 · 2 comments

Comments

@nikkwong
Copy link

Hi,

Is it possible to flatten the output of the files in the dest folder? My templates are nested relative to the grunt file into something like /src/templates/index.html so by declaring

dest: 'dist';

the output is

dist/src/templates/index.html,

where i'd prefer

dist/index.html

Thanks.

@alanshaw
Copy link
Owner

You can use the cwd option for this: http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically

@wizzyfx
Copy link

wizzyfx commented Dec 18, 2015

        includereplace: {
            development: {
                options: {},
                files: [
                    {
                        src: 'some/dir/*.html',
                        dest: 'targetdir/',
                        flatten: true,
                        expand:true
                    }
                ],
            }
        }

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

3 participants