Skip to content

Image versioning not work correctly #12946

@rawatsandeep670

Description

@rawatsandeep670

Versions

Versions / Env:
angular-cli: 6.0.8
node: 10.13.0
os: Window x64

Repro steps

The content of the src/ directory is as below:
src/
├── assets
│ ├── images
│ │ ├── assistance.png
│ │ ├── checked.png
│ │ ├── avatar.png
│ │ ├──table-desktop-blue.png
│ ├── fonts
│ │ ├──calibri.ttf
│ │ ├──cards21.ttf
├── app/
│ │ ├── home/
│ │ │ ├── home.module.ts
│ │ │ ├── rooms/
│ │ │ │ ├── rooms.component.html
│ │ │ │ ├── rooms.component.css
│ │ │ │ ├── rooms.component.ts
├── environments
├── index.html
├── styles.css
├── main.ts
├── favicon.ico

Build a production version. # ng build --prod --base-href=/myProject/
The content of the dist/ directory is as below: Notice that only two images hashed not all

dist/
├── assets
│ ├── images
│ │ ├── assistance.png
│ │ ├── checked.png
│ │ ├── avatar.png
│ │ ├──table-desktop-blue.png
│ ├── fonts
│ │ ├──calibri.ttf
│ │ ├──cards21.ttf
├── cards21.a3ca179e19afd9ff75c3.ttf
├── avatar.7b1f0eaea44dcf3ebaa5.png
├── table-desktop-blue.45bbb739b0ceafc92916.png
├── index.html
├── 1.9d5dbd91ee597bcea89c.js
├── common.8c9eaa448b01bdf489e1.js
├── main.d0df4fbb3790e577ce00.js
├── polyfills.1f682948bdc523f3cb0b.js
├── runtime.fb52e8a1c273f473121b.js
├── styles.8859be51ae08103a3fa6.css
├── favicon.ico

Noticeable Points:

  • Only two images & one font are hashed not all.
  • Images & fonts still appear in assets folder while these are hashed

I used all images in css file with background property

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions