Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Can't copy custom files to same destination #78

@jabas06

Description

@jabas06

I've an issue setting a custom config file for the Copy task. If I add a new source entry with the same destination than a previous one, the content of the second source is not copied. Example, I'm want to add the font-awesome fonts like this, but doesn't work.

module.exports = {
    include: [
       // Other sources
        {
            src: 'node_modules/ionicons/dist/fonts/',
            dest: 'www/assets/fonts/'
        },
        {
            src: 'node_modules/font-awesome/fonts/',
            dest: 'www/assets/fonts/' 
        },
    ]
};

Changing the destination folder for font-awesome works, but I want all the fonts in the same folder.

This works.

module.exports = {
    include: [
       // Other sources
        {
            src: 'node_modules/ionicons/dist/fonts/',
            dest: 'www/assets/fonts/'
        },
        {
            src: 'node_modules/font-awesome/fonts/',
            dest: 'www/assets/fonts2/' 
        },
    ]
};

My environment:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 10
Node Version: v6.6.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions