【发布时间】:2021-10-12 13:20:42
【问题描述】:
我是 Angular 的初学者。我正在尝试在我的第一个项目中添加引导程序,但它没有出现在开发人员工具的头部下方。这是我的 angularjson 代码。提前致谢。
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/my-first-project",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.css",
"src/styles.css"
],
"scripts": [
"node_modules/bootstrap/dist/js/bootstrap.js"
]
【问题讨论】:
-
因为它被缩小并编译到 scripts.js 和 styles.js 包中
-
从脚本中删除它仍然无法正常工作
-
即使您没有在头部明确看到它,它也能正常工作
标签: javascript node.js angular bootstrap-4 frontend