Skip to content

index.html in another folder #2951

Closed
Closed
@ghost

Description

OS?

Windows 8

Versions.

angular-cli: 1.0.0-beta.19-3
node: 6.8.0
os: win32 x64

Repro steps.

i have standard config with changes only in src/dist folders and updated tsconfig.json references for it(not interested, it works fine).

{
  "apps": [
    {
      "root": "frontend/sources/main",
      "outDir": "frontend/processed/main.bundled",
    }
  ]
}

but i place index.html in ${www}/ folder instead of ${www}/frontend/processed/main.bundled/

The log given by the failure.

browser cannot download scripts/fonts/icon because they are in /frontend/processed/main.bundled/ subfolder.

<base href="https://github.com/">
<link rel="icon" type="image/x-icon" href="public/assets/favicon.ico">
<script type="text/javascript" src="inline.js"></script>
<script type="text/javascript" src="styles.bundle.js"></script>
<script type="text/javascript" src="scripts.bundle.js"></script>
<script type="text/javascript" src="main.bundle.js"></script>

is it posible to talk angular-cli to use frontend/processed/main.bundled/ prefix for processed references?
i do not dound it in schema.d.ts

Mention any other details that might be useful.

i do not want to place files in ${www}/ folder.
i know about proxy ability. it is not suitable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions