Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 39459fe

Browse files
author
Robert Messerle
committed
update(build): switches docs to use minified CSS
1 parent f7f7551 commit 39459fe

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

docs/config/template/index.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="initial-scale=1" />
66

77
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=RobotoDraft:300,400,500,700,400italic">
8-
<link rel="stylesheet" href="angular-material.css">
8+
<link rel="stylesheet" href="angular-material.min.css">
99
<link rel="stylesheet" href="docs.css">
1010
</head>
1111
<body layout="row" ng-cloak>

gulp/tasks/build-scss.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ exports.task = function() {
1919
.pipe(util.autoprefix())
2020
.pipe(insert.prepend(config.banner))
2121
.pipe(gulp.dest(dest))
22-
.pipe(gulpif(true, lazypipe()
23-
.pipe(gulpif, !IS_DEV, minifyCss)
24-
.pipe(rename, {extname: '.min.css'})
25-
.pipe(gulp.dest, dest)
26-
()
27-
))
22+
.pipe(gulpif(!IS_DEV, minifyCss()))
23+
.pipe(rename({extname: '.min.css'}))
24+
.pipe(gulp.dest(dest))
2825
);
2926
streams.push(
3027
gulp.src(config.scssStandaloneFiles)

gulp/util.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ function buildJs (isRelease) {
2626
.pipe(BUILD_MODE.transform())
2727
.pipe(insert.prepend(config.banner))
2828
.pipe(gulp.dest(config.outputDir))
29-
.pipe(gulpif(isRelease, lazypipe()
30-
.pipe(gulpif, !IS_DEV, uglify({ preserveComments: 'some' }))
31-
.pipe(rename, { extname: '.min.js' })
32-
.pipe(gulp.dest, config.outputDir)
33-
()
34-
));
29+
.pipe(gulpif(!IS_DEV, uglify({ preserveComments: 'some' })))
30+
.pipe(rename({ extname: '.min.js' }))
31+
.pipe(gulp.dest(config.outputDir));
3532

3633
return series(jsProcess, deployMaterialMocks());
3734

0 commit comments

Comments
 (0)