如何防止Hyperledger Composer应用程序加载Bootstrap?

时间:2017-09-03 19:30:50

标签: node.js angular hyperledger hyperledger-fabric hyperledger-composer

我想从Hyperledger Composer编译的项目中删除Bootstrap样式表。

我使用yo hyperledger-composer然后使用npm start进行编译。只要在http://localhost:4200/处提供src/index.html,就会在结束<style>标记之前插入Twitter Bootstrap </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 /目录,但“bootstrap”没有打开任何点击(.bootstrapModule(AppModule);除外。

在根目录中,它在package.json中列为"bootstrap": "^3.3.7",的依赖项。因此,我认为它是从node_modules/bootstrap/dist/bootstrap.min.css导入样式。

没有.angular-cli.json文件。据我所知,我们没有使用ng-bootstrap。这种风格注入来自哪里?

1 个答案:

答案 0 :(得分:1)

没关系,毕竟有一个.angular-cli.json文件。您可以从那里的脚本加载器中删除它。

相关问题