【发布时间】:2016-10-08 23:31:34
【问题描述】:
我正在尝试安装以下内容:
npm install bootstrap-material-design
然后我将以下内容添加到我的 package.json 中
"dependencies": {
...
"bootstrap-material-design": "0.5.10"
}
那么在使用 webpack 的 angular2 中,我该如何导入呢?该软件包的文档如下所述,该软件包安装在node_modules/bootstrap-material-design/:
<!-- Bootstrap Material Design -->
<link rel="stylesheet" type="text/css" href="dist/css/bootstrap-material-design.css">
<link rel="stylesheet" type="text/css" href="dist/css/ripples.min.css">
所以我是否通过以下内容在头部包含:
<!-- Bootstrap Material Design -->
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap-material-design/dist/css/bootstrap-material-design.css">
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap-material-design/dist/css/ripples.min.css">
或者 angular2 已经包含了?
【问题讨论】: