我如何在我的应用程序中使用图片? angular cli + webpack

时间:2016-10-23 20:07:31

标签: angular angular-cli

如何在我的应用程序中使用图片? 如何配置?

angular-cli:1.0.0-beta.16(使用webpack)

我试图将我的图片放在assets / images / test.png assets / test.png中但不起作用!

以及如何从我的HTML中抓取我的照片?

角cli.json

"apps": [
{
  "root": "src",
  "outDir": "dist",
  "assets": "assets",
  "index": "index.html",
  "main": "main.ts",
  "test": "test.ts",
  "tsconfig": "tsconfig.json",
  "prefix": "app",
  "mobile": false,
  "styles": [
    "styles.css"
  ],
  ......other things..

感谢。

0 个答案:

没有答案