@angular-devkit/build-angular 0.1102.8 → 0.1102.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -2
- package/package.json +8 -8
- package/plugins/karma.d.ts +1 -1
- package/plugins/karma.js +1 -1
- package/src/app-shell/index.js +1 -1
- package/src/babel/babel-loader.d.ts +1 -1
- package/src/babel/presets/application.js +1 -1
- package/src/babel/webpack-loader.js +1 -1
- package/src/babel-bazel.d.ts +1 -1
- package/src/browser/index.d.ts +1 -1
- package/src/browser/index.js +1 -1
- package/src/browser/tests/setup.d.ts +1 -1
- package/src/dev-server/index.d.ts +1 -1
- package/src/dev-server/index.js +1 -1
- package/src/extract-i18n/index.d.ts +1 -1
- package/src/extract-i18n/index.js +1 -1
- package/src/extract-i18n/ivy-extract-loader.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/karma/find-tests.js +1 -1
- package/src/karma/index.d.ts +1 -1
- package/src/karma/index.js +1 -1
- package/src/ng-packagr/index.d.ts +1 -1
- package/src/ng-packagr/index.js +1 -1
- package/src/protractor/index.d.ts +1 -1
- package/src/protractor/index.js +1 -1
- package/src/server/index.d.ts +1 -1
- package/src/server/index.js +1 -1
- package/src/test-utils.d.ts +1 -1
- package/src/test-utils.js +1 -1
- package/src/testing/builder-harness.d.ts +1 -1
- package/src/testing/builder-harness.js +1 -1
- package/src/testing/file-watching.d.ts +1 -1
- package/src/testing/index.d.ts +1 -1
- package/src/testing/jasmine-helpers.d.ts +1 -1
- package/src/transforms.d.ts +1 -1
- package/src/tslint/index.js +1 -1
- package/src/typings.d.ts +1 -1
- package/src/utils/action-cache.js +1 -1
- package/src/utils/action-executor.js +1 -1
- package/src/utils/build-browser-features.d.ts +1 -1
- package/src/utils/build-browser-features.js +1 -1
- package/src/utils/build-options.d.ts +1 -1
- package/src/utils/build-options.js +1 -1
- package/src/utils/bundle-calculator.js +1 -1
- package/src/utils/cache-path.js +1 -1
- package/src/utils/check-port.js +1 -1
- package/src/utils/color.d.ts +1 -1
- package/src/utils/color.js +1 -1
- package/src/utils/copy-assets.js +1 -1
- package/src/utils/copy-file.d.ts +1 -1
- package/src/utils/copy-file.js +1 -1
- package/src/utils/default-progress.d.ts +1 -1
- package/src/utils/default-progress.js +1 -1
- package/src/utils/delete-output-dir.js +1 -1
- package/src/utils/environment-options.js +1 -1
- package/src/utils/find-up.js +1 -1
- package/src/utils/fs.d.ts +1 -1
- package/src/utils/fs.js +1 -1
- package/src/utils/i18n-inlining.d.ts +1 -1
- package/src/utils/i18n-options.d.ts +1 -1
- package/src/utils/index-file/augment-index-html.d.ts +1 -1
- package/src/utils/index-file/augment-index-html.js +1 -1
- package/src/utils/index-file/html-rewriting-stream.d.ts +1 -1
- package/src/utils/index-file/html-rewriting-stream.js +1 -1
- package/src/utils/index-file/index-html-generator.d.ts +1 -1
- package/src/utils/index-file/index-html-generator.js +1 -1
- package/src/utils/index-file/inline-critical-css.d.ts +1 -1
- package/src/utils/index-file/inline-critical-css.js +1 -1
- package/src/utils/index-file/inline-fonts.d.ts +1 -1
- package/src/utils/index-file/inline-fonts.js +1 -1
- package/src/utils/index.d.ts +1 -1
- package/src/utils/index.js +1 -1
- package/src/utils/is-directory.d.ts +1 -1
- package/src/utils/is-directory.js +1 -1
- package/src/utils/load-translations.js +1 -1
- package/src/utils/normalize-asset-patterns.d.ts +1 -1
- package/src/utils/normalize-asset-patterns.js +1 -1
- package/src/utils/normalize-builder-schema.d.ts +1 -1
- package/src/utils/normalize-builder-schema.js +1 -1
- package/src/utils/normalize-file-replacements.d.ts +1 -1
- package/src/utils/normalize-file-replacements.js +1 -1
- package/src/utils/normalize-optimization.d.ts +1 -1
- package/src/utils/normalize-optimization.js +1 -1
- package/src/utils/normalize-source-maps.d.ts +1 -1
- package/src/utils/normalize-source-maps.js +1 -1
- package/src/utils/output-paths.js +1 -1
- package/src/utils/package-chunk-sort.d.ts +1 -1
- package/src/utils/process-bundle-bootstrap.js +2 -2
- package/src/utils/process-bundle.d.ts +1 -1
- package/src/utils/process-bundle.js +1 -1
- package/src/utils/read-tsconfig.d.ts +1 -1
- package/src/utils/read-tsconfig.js +1 -1
- package/src/utils/run-module-as-observable-fork.d.ts +1 -1
- package/src/utils/run-module-worker.js +1 -2
- package/src/utils/service-worker.d.ts +1 -1
- package/src/utils/service-worker.js +1 -1
- package/src/utils/spinner.d.ts +1 -1
- package/src/utils/spinner.js +1 -1
- package/src/utils/strip-bom.d.ts +1 -1
- package/src/utils/strip-bom.js +1 -1
- package/src/utils/tty.d.ts +1 -1
- package/src/utils/tty.js +1 -1
- package/src/utils/url.d.ts +1 -1
- package/src/utils/url.js +1 -1
- package/src/utils/version.d.ts +1 -1
- package/src/utils/version.js +1 -1
- package/src/utils/webpack-browser-config.d.ts +1 -1
- package/src/utils/webpack-diagnostics.d.ts +1 -1
- package/src/utils/webpack-version.js +1 -1
- package/src/utils/workers.d.ts +1 -1
- package/src/utils/workers.js +1 -1
- package/src/webpack/configs/browser.d.ts +1 -1
- package/src/webpack/configs/common.js +1 -1
- package/src/webpack/configs/dev-server.d.ts +1 -1
- package/src/webpack/configs/dev-server.js +2 -2
- package/src/webpack/configs/index.d.ts +1 -1
- package/src/webpack/configs/index.js +1 -1
- package/src/webpack/configs/server.js +1 -1
- package/src/webpack/configs/stats.d.ts +1 -1
- package/src/webpack/configs/stats.js +1 -1
- package/src/webpack/configs/styles.d.ts +1 -1
- package/src/webpack/configs/styles.js +4 -1
- package/src/webpack/configs/test.d.ts +1 -1
- package/src/webpack/configs/test.js +1 -1
- package/src/webpack/configs/worker.js +1 -1
- package/src/webpack/es5-jit-polyfills.js +1 -1
- package/src/webpack/es5-polyfills.js +2 -2
- package/src/webpack/jit-polyfills.js +1 -1
- package/src/webpack/plugins/analytics.d.ts +1 -1
- package/src/webpack/plugins/analytics.js +1 -1
- package/src/webpack/plugins/any-component-style-budget-checker.d.ts +1 -1
- package/src/webpack/plugins/any-component-style-budget-checker.js +1 -1
- package/src/webpack/plugins/builder-watch-plugin.d.ts +1 -1
- package/src/webpack/plugins/common-js-usage-warn-plugin.d.ts +1 -1
- package/src/webpack/plugins/common-js-usage-warn-plugin.js +1 -1
- package/src/webpack/plugins/dedupe-module-resolve-plugin.d.ts +1 -1
- package/src/webpack/plugins/hmr/hmr-accept.d.ts +1 -1
- package/src/webpack/plugins/hmr/hmr-accept.js +1 -1
- package/src/webpack/plugins/hmr/hmr-loader.d.ts +1 -1
- package/src/webpack/plugins/hmr/hmr-loader.js +1 -1
- package/src/webpack/plugins/index-html-webpack-plugin.js +1 -1
- package/src/webpack/plugins/index.d.ts +1 -1
- package/src/webpack/plugins/index.js +1 -1
- package/src/webpack/plugins/karma/karma-webpack-failure-cb.d.ts +1 -1
- package/src/webpack/plugins/karma/karma-webpack-failure-cb.js +1 -1
- package/src/webpack/plugins/named-chunks-plugin.d.ts +1 -1
- package/src/webpack/plugins/named-chunks-plugin.js +1 -1
- package/src/webpack/plugins/optimize-css-webpack-plugin.js +13 -6
- package/src/webpack/plugins/postcss-cli-resources.js +1 -1
- package/src/webpack/plugins/remove-hash-plugin.d.ts +1 -1
- package/src/webpack/plugins/scripts-webpack-plugin.d.ts +1 -1
- package/src/webpack/plugins/scripts-webpack-plugin.js +1 -1
- package/src/webpack/plugins/single-test-transform.d.ts +1 -1
- package/src/webpack/plugins/single-test-transform.js +1 -1
- package/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.d.ts +1 -1
- package/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.js +1 -1
- package/src/webpack/plugins/webpack-rollup-loader.d.ts +1 -1
- package/src/webpack/plugins/webpack-rollup-loader.js +1 -1
- package/src/webpack/utils/async-chunks.d.ts +1 -1
- package/src/webpack/utils/helpers.d.ts +1 -1
- package/src/webpack/utils/helpers.js +1 -1
- package/src/webpack/utils/stats.d.ts +1 -1
- package/src/webpack/utils/stats.js +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright Google
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -165,6 +165,9 @@ function getStylesConfig(wco) {
|
|
|
165
165
|
` To enable Tailwind CSS, please install the 'tailwindcss' package.`);
|
|
166
166
|
}
|
|
167
167
|
if (tailwindPackagePath) {
|
|
168
|
+
if (process.env['TAILWIND_MODE'] === undefined) {
|
|
169
|
+
process.env['TAILWIND_MODE'] = buildOptions.watch ? 'watch' : 'build';
|
|
170
|
+
}
|
|
168
171
|
extraPostcssPlugins.push(require(tailwindPackagePath)({ config: tailwindConfigPath }));
|
|
169
172
|
}
|
|
170
173
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getWorkerConfig = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright Google
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -111,4 +111,4 @@ import 'core-js/modules/web.dom-collections.iterator';
|
|
|
111
111
|
import 'core-js/modules/es.promise';
|
|
112
112
|
import 'core-js/modules/es.json.to-string-tag';
|
|
113
113
|
|
|
114
|
-
import 'regenerator-runtime/runtime';
|
|
114
|
+
import 'regenerator-runtime/runtime';
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NgBuildAnalyticsPlugin = exports.countOccurrences = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IndexHtmlWebpackPlugin = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NamedLazyChunksPlugin = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OptimizeCssWebpackPlugin = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -79,23 +79,30 @@ class OptimizeCssWebpackPlugin {
|
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
const cssNanoOptions = {
|
|
82
|
-
preset: [
|
|
82
|
+
preset: [
|
|
83
|
+
'default',
|
|
84
|
+
{
|
|
83
85
|
// Disable SVG optimizations, as this can cause optimizations which are not compatible in all browsers.
|
|
84
86
|
svgo: false,
|
|
85
87
|
// Disable `calc` optimizations, due to several issues. #16910, #16875, #17890
|
|
86
88
|
calc: false,
|
|
87
|
-
|
|
89
|
+
// Disable CSS rules sorted due to several issues #20693
|
|
90
|
+
// https://github.com/ionic-team/ionic-framework/issues/23266 and
|
|
91
|
+
// https://github.com/cssnano/cssnano/issues/1054
|
|
92
|
+
cssDeclarationSorter: false,
|
|
93
|
+
},
|
|
94
|
+
],
|
|
88
95
|
};
|
|
89
96
|
const postCssOptions = {
|
|
90
97
|
from: file,
|
|
91
98
|
map: map && { annotation: false, prev: map },
|
|
92
99
|
};
|
|
93
100
|
const output = await new Promise((resolve, reject) => {
|
|
94
|
-
//
|
|
101
|
+
// @types/cssnano are not up to date with version 5.
|
|
95
102
|
// tslint:disable-next-line: no-any
|
|
96
|
-
cssNano.process(content, postCssOptions
|
|
103
|
+
cssNano(cssNanoOptions).process(content, postCssOptions)
|
|
97
104
|
.then(resolve)
|
|
98
|
-
.catch((err) => reject(
|
|
105
|
+
.catch((err) => reject(err));
|
|
99
106
|
});
|
|
100
107
|
for (const { text } of output.warnings()) {
|
|
101
108
|
webpack_diagnostics_1.addWarning(compilation, text);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.postcss = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SingleTestTransformLoader = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.webpackStatsLogger = exports.createWebpackLoggingCallback = exports.statsHasWarnings = exports.statsHasErrors = exports.statsErrorsToString = exports.statsWarningsToString = exports.IGNORE_WARNINGS = exports.generateBundleStats = exports.formatSize = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
|
-
* Copyright Google
|
|
6
|
+
* Copyright Google LLC All Rights Reserved.
|
|
7
7
|
*
|
|
8
8
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9
9
|
* found in the LICENSE file at https://angular.io/license
|
|
@@ -143,7 +143,7 @@ function statsToString(json, statsConfig, bundleState) {
|
|
|
143
143
|
return 0;
|
|
144
144
|
});
|
|
145
145
|
const statsTable = generateBuildStatsTable(changedChunksStats, colors, unchangedChunkNumber === 0);
|
|
146
|
-
// In some cases we do things outside of webpack context
|
|
146
|
+
// In some cases we do things outside of webpack context
|
|
147
147
|
// Such us index generation, service worker augmentation etc...
|
|
148
148
|
// This will correct the time and include these.
|
|
149
149
|
const time = (Date.now() - json.builtAt) + json.time;
|