Skip to content

allowOutsideOutDir for assets not working again #9363

Closed
@trendzetter

Description

@trendzetter

Versions

Tested on:
1.6.3
1.6.5
Windows 10

Repro steps

  • npm install -G @angular/cli

  • cd to project with assets that need to be copied outside the project folder. From the .angular-cli.json:
    "assets": [{
    "input": "./assets/",
    "glob": "**/*",
    "output": "../EcView/WebContent/assets",
    "allowOutsideOutDir": true
    }],

  • ng build

Observed behavior

Build failed:

>ng build
An asset cannot be written to a location outside the project.

Desired behavior

The build process copies the assets to the specified folder and completes the compilation of source code.

Other details

Seems similar to, possible regression of #8613

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions