angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng github-pages:deploy creating wrong urls in CSS

Open sandeeprana011 opened this issue 10 years ago • 3 comments

OS?

Mac OSX (Sierra)

Versions.

angular-cli: 1.0.0-beta.19-3 node: 6.7.0 os: darwin x64

Repro steps.

ng serve creates the complete path for relative paths in CSS Like if I add /app/images/icon.png this will be something like http://localhost:4200/app/images/icon.png But when I deploy the site using ng github-pages:deploy it doesn't create complete paths . Relative path remains as it is Like /app/images/icon.png

The log given by the failure.

Build was successful without any error

sandeeprana011 avatar Nov 18 '16 19:11 sandeeprana011

Try removing the preceding forward slash such that /app/images/icon.png becomes app/images/icon.png to work with relative paths.

rolyatsats avatar Dec 03 '16 23:12 rolyatsats

Closing this as a solution has been suggested.

hansl avatar Dec 08 '16 22:12 hansl

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.