Y
Y
Yuri Kalnin2019-06-01 11:16:49
Angular
Yuri Kalnin, 2019-06-01 11:16:49

Why do fonts stack in the root of dist/name_project?

Directory structure
8An9v6OTzgKv82.jpg
In the file:
src/assets/fonts/fonts.css I include
fonts:

@font-face {
  font-family: 'SF UI Text';
  src: url('SanFrancisco/SFUIText-HeavyItalic.eot');
  src: local('SF UI Text Heavy Italic'), local('SFUIText-HeavyItalic'),
  url('SanFrancisco/SFUIText-HeavyItalic.eot?#iefix') format('embedded-opentype'),
  url('SanFrancisco/SFUIText-HeavyItalic.woff') format('woff'),
  url('SanFrancisco/SFUIText-HeavyItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

I run ng build
, everything is going to be OK, only all fonts are put in the
dist/angular-dashboard folder
in the root:
E2p9odXT7JjQKA.jpg
how to build so that the font files are in dist/angular-dashboard/assets/fonts?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question