mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: copy sourcemaps for prebuilt themes (#4529)
* The transpiled prebuilt themes include references to sourcemaps. Those sourcemaps don't exist in releases and developers might get warnings. Fixes #4299
This commit is contained in:
committed by
Jeremy Elbourn
parent
7f10a863d2
commit
876ab875b5
@@ -2,7 +2,7 @@ import {task, src, dest} from 'gulp';
|
||||
import {join} from 'path';
|
||||
import {writeFileSync} from 'fs';
|
||||
import {Bundler} from 'scss-bundle';
|
||||
import {execNodeTask, sequenceTask} from '../util/task_helpers';
|
||||
import {sequenceTask} from '../util/task_helpers';
|
||||
import {composeRelease} from '../util/package-build';
|
||||
import {COMPONENTS_DIR, DIST_MATERIAL, DIST_RELEASES} from '../constants';
|
||||
|
||||
@@ -16,7 +16,7 @@ const themingEntryPointPath = join(COMPONENTS_DIR, 'core', 'theming', '_all-them
|
||||
// Output path for the scss theming bundle.
|
||||
const themingBundlePath = join(releasePath, '_theming.scss');
|
||||
// Matches all pre-built theme css files
|
||||
const prebuiltThemeGlob = join(DIST_MATERIAL, '**/theming/prebuilt/*.css');
|
||||
const prebuiltThemeGlob = join(DIST_MATERIAL, '**/theming/prebuilt/*.css?(.map)');
|
||||
// Matches all SCSS files in the library.
|
||||
const allScssGlob = join(COMPONENTS_DIR, '**/*.scss');
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {join, basename, dirname} from 'path';
|
||||
import {join, basename} from 'path';
|
||||
import {createRollupBundle} from './rollup-helper';
|
||||
import {inlineMetadataResources} from './inline-resources';
|
||||
import {transpileFile} from './ts-compiler';
|
||||
|
||||
Reference in New Issue
Block a user