0
我想從我的Hyperledger Composer編譯的項目中刪除Bootstrap樣式表。如何防止Hyperledger Composer應用程序加載Bootstrap?
我使用yo hyperledger-composer
然後npm start
編譯。每當src/index.html
獲得服務http://localhost:4200/,一個Twitter引導<style>
標籤正在關閉</head>
標籤之前插入。這裏是來源:
<head>
<meta charset="utf-8">
<title>My App</title>
<base href="/">
<style type="text/css">/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
...
[bootstrap.min.css is being inserted here, I don't know why]
...
/*# sourceMappingURL=bootstrap.min.css.map */
</style>
<style type="text/css">/* You can add global styles to this file, and also import other style files */
</style>
<style></style>
<style>{%BLOCK%}</style>
</head>
在我的項目中,我尋找有問題的代碼?我想完全刪除這個Bootstrap標籤。
我grep'ed的/ src /目錄,但「引導」不露面任何命中(除了.bootstrapModule(AppModule);
。
在根目錄下,它被列爲package.json
爲"bootstrap": "^3.3.7",
的依賴,因此,我認爲它是從node_modules/bootstrap/dist/bootstrap.min.css
導入的樣式
沒有.angular-cli.json文件我們沒有使用ng-bootstrap,據我所知,這種樣式注入來自哪裏?
我希望你有'ng-bootstrap'導入。 https://ng-bootstrap.github.io/#/getting-started –
感謝您的回覆。我檢查過,我沒有在任何地方加載NgbModule。 –
在'
'中添加了添加到Angular組件的樣式,作爲'