Closed
Description
Bug Report or Feature Request (mark with an x
)
- [ x] bug report -> found similar issue which i believe to have been closed in error: #3143
Versions.
Output from: `ng --version`.
@angular/cli: 1.1.0
node: 8.0.0
os: darwin x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0
@angular/compiler-cli: 4.1.3
@angular/language-service: 4.1.3
Repro steps.
ng new testapp --style scss
Then created new directory in ./src/assets/fonts/
which includes a set of custom font files like Gibson-Light-webfont.eot
for example.
Then in my styles.scss
file i reference those fonts like this:
@font-face {
font-family: 'gibson_package';
src: url('assets/fonts/Gibson-Light-webfont.eot');
...
Then i run ng build --prod
In my ./dist
directory, the build process correctly copies my fonts to ./dist/assets/fonts/*
as expected, but it also included duplicates of all of my fonts right in the root of my ./dist
directory which i did not expect and the paths set in @font-face url's are changed to point to the root.
The log given by the failure.
No errors are output.
Desired functionality.
That the production build only copy my fonts to the ./dist/assets/fonts
directory and not modify the paths in @font-face urls.
Metadata
Metadata
Assignees
Labels
No labels