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:
Paul Gschwendtner
2017-05-15 20:20:26 +02:00
committed by Jeremy Elbourn
parent 7f10a863d2
commit 876ab875b5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -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';