mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Revert "update: add button to toggle theme in demo-app" (#3271)
This commit is contained in:
@@ -17,10 +17,6 @@ export const SASS_AUTOPREFIXER_OPTIONS = {
|
||||
cascade: false,
|
||||
};
|
||||
|
||||
export const SASS_PREPROCESSOR_OPTIONS = {
|
||||
includePaths: [DIST_ROOT]
|
||||
};
|
||||
|
||||
export const HTML_MINIFIER_OPTIONS = {
|
||||
collapseWhitespace: true,
|
||||
removeComments: true,
|
||||
|
||||
@@ -2,10 +2,7 @@ import * as child_process from 'child_process';
|
||||
import * as fs from 'fs';
|
||||
import * as gulp from 'gulp';
|
||||
import * as path from 'path';
|
||||
import {
|
||||
NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT, SASS_AUTOPREFIXER_OPTIONS,
|
||||
SASS_PREPROCESSOR_OPTIONS
|
||||
} from './constants';
|
||||
import {NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT, SASS_AUTOPREFIXER_OPTIONS} from './constants';
|
||||
|
||||
|
||||
/** Those imports lack typings. */
|
||||
@@ -47,7 +44,7 @@ export function sassBuildTask(dest: string, root: string) {
|
||||
return () => {
|
||||
return gulp.src(_globify(root, '**/*.scss'))
|
||||
.pipe(gulpSourcemaps.init())
|
||||
.pipe(gulpSass(SASS_PREPROCESSOR_OPTIONS).on('error', gulpSass.logError))
|
||||
.pipe(gulpSass().on('error', gulpSass.logError))
|
||||
.pipe(gulpAutoprefixer(SASS_AUTOPREFIXER_OPTIONS))
|
||||
.pipe(gulpSourcemaps.write('.'))
|
||||
.pipe(gulp.dest(dest));
|
||||
|
||||
@@ -12,7 +12,7 @@ task('aot:copy', [':build:devapp:scss', ':build:devapp:assets']);
|
||||
*/
|
||||
task('aot:prepare', sequenceTask(
|
||||
'clean',
|
||||
['build:components:release', 'aot:copy', ':build:components:ngc'])
|
||||
['aot:copy', 'build:components:release', ':build:components:ngc'])
|
||||
);
|
||||
|
||||
/** Builds the demo-app with the Angular compiler to verify that all components work. */
|
||||
|
||||
@@ -20,7 +20,7 @@ task(':watch:devapp', () => {
|
||||
|
||||
task(':build:devapp:vendor', vendorTask());
|
||||
task(':build:devapp:ts', tsBuildTask(appDir));
|
||||
task(':build:devapp:scss', [':build:components:scss'], sassBuildTask(outDir, appDir));
|
||||
task(':build:devapp:scss', sassBuildTask(outDir, appDir));
|
||||
task(':build:devapp:assets', copyTask(appDir, outDir));
|
||||
task('build:devapp', buildAppTask('devapp'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user