Skip to content

How does bundleExclude work? #484

@MrWolfZ

Description

@MrWolfZ

I am trying to exclude some files from deployment when deploying my ASP 5 app to azure (building it with CTP 6). I have a folder called "dev" inside my wwwroot. In my project.json, I have added

"bundleExclude": [
        "node_modules",
        "bower_components",
        "wwwroot/dev/**/*.*",
        "dev/**/*.*",
        "**.kproj",
        "**.user",
        "**.vspscc",
        "**.js"
    ],

However, this does not seem to do anything. During publish I can see that the command "kpm bundle" is run. When I run that command myself it always copies over everything in my wwwroot into the output folder, so it ignores the bundleExclude setting completely.

I am using kre-clr-win-x86.1.0.0-beta3 with kpm being at version 1.0.0-beta3-11030.

What is the correct way of using bundleExclude?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions