diff --git a/.browserslistrc b/.browserslistrc deleted file mode 100644 index 8084853..0000000 --- a/.browserslistrc +++ /dev/null @@ -1,12 +0,0 @@ -# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries - -# You can see what browsers were selected by your queries by running: -# npx browserslist - -> 0.5% -last 2 versions -Firefox ESR -not dead -not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/angular.json b/angular.json index 856879d..fe0759b 100644 --- a/angular.json +++ b/angular.json @@ -11,12 +11,14 @@ "prefix": "ble", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/angular-web-bluetooth-starter", "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "browser": "src/main.ts", + "polyfills": [ + "zone.js" + ], "tsConfig": "tsconfig.app.json", "assets": [ "src/favicon.ico", @@ -28,55 +30,43 @@ ], "scripts": [ "./node_modules/smoothie/smoothie.js" - ], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true + ] }, "configurations": { "production": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" + "maximumWarning": "500kb", + "maximumError": "1mb" }, { "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" + "maximumWarning": "2kb", + "maximumError": "4kb" } - ] + ], + "outputHashing": "all" + }, + "development": { + "optimization": false, + "extractLicenses": false, + "sourceMap": true } }, - "defaultConfiguration": "" + "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "buildTarget": "angular-web-bluetooth-starter:build" - }, "configurations": { "production": { "buildTarget": "angular-web-bluetooth-starter:build:production" + }, + "development": { + "buildTarget": "angular-web-bluetooth-starter:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -114,14 +104,17 @@ "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "tsConfig": "projects/manekinekko/angular-web-bluetooth/tsconfig.lib.json", "project": "projects/manekinekko/angular-web-bluetooth/ng-package.json" }, "configurations": { "production": { "tsConfig": "projects/manekinekko/angular-web-bluetooth/tsconfig.lib.prod.json" + }, + "development": { + "tsConfig": "projects/manekinekko/angular-web-bluetooth/tsconfig.lib.json" } - } + }, + "defaultConfiguration": "production" }, "test": { "builder": "@angular-builders/jest:run", diff --git a/docs/classes/AppPage.html b/docs/classes/AppPage.html index 5f4c9ae..7e15bb2 100644 --- a/docs/classes/AppPage.html +++ b/docs/classes/AppPage.html @@ -13,8 +13,66 @@ - -