Angular-cli: assets kept in public is not properly ported to dist.

Created on 13 Jun 2016  路  4Comments  路  Source: angular/angular-cli

There are several problems using assets in public folder.
I have an assets folder inside public to keep images and _scss files.

  1. The images kept are copied to dist/assets/ not dist/public/assets
  2. The scss files are copied in dist/assets

Why there is an duplicate folder created and why the scss are copied to dist.
How do I port my images then?

2 (required) docs

Most helpful comment

Yeah need to add some documentation about the public dir, this behaviour is a bit confusing.

All 4 comments

whatever is in the _public_ should be copied into your output path (_dist/_ by default). So you should be expecting _public/assets_ to be copied to _dist/assets_

if you wanted your images to be @ _dist/public/assets_ then you should put them @ _public/public/assets_

Yeah need to add some documentation about the public dir, this behaviour is a bit confusing.

Closed as obsolete due to #1455. Documentation about the public dir is still needed but being tracked in https://github.com/angular/angular-cli/issues/339

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings