目前我在 index.html 中的 Angular 5 应用程序中使用此链接:
<link href="https://unpkg.com/angular-calendar@0.23.6/css/angular-calendar.css" rel="stylesheet">
我试图将此链接更改为:
<link href="./node_modules/angular-calendar/css/angular-calendar.css" rel="stylesheet">
但它不起作用。有谁知道我必须做什么才能让它工作。甚至文件夹 node_modules 都打包了 webpack 吗?
最佳答案
你不需要在 index.html 文件中这样做
在 angular-cli.json
文件中进行更改
"styles": [
"./node_modules/angular-calendar/css/angular-calendar.css",
"styles.css"
],
关于css - Angular 5 - 链接到 node_module 文件夹中的 css 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48986041/