将.js文件捆绑在Angular 6构建的app文件夹中

时间:2018-09-20 10:42:29

标签: angular angular-cli-v6

我想在app文件夹中添加main.js,pollyfill.js等,如何在dist文件夹中创建app文件夹。对此我是新手,建议如何进行相同的更改 共享angular.json代码片段以供参考,

  {
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "merchandising": {
      "root": "",
      "sourceRoot": "src",
      "projectType": "application",
      "prefix": "app",
      "schematics": {},
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "src/tsconfig.app.json",
            "assets": ["src/favicon.ico", "src/assets"],
            "styles": ["src/styles.css", "./node_modules/font-awesome/css/font-awesome.css", "src/style.scss"],
            "scripts": []
          },
          "configurations":{}
          }
        },

      }
    },
 }}

0 个答案:

没有答案