Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 1x 1x 1x 1x 1x 1x | import * as gulp from 'gulp'
import * as rev from 'gulp-rev'
import { ITimplaTask, projectDestPath, revNapkin, TIMPLA_PROCESS } from '../../internal'
// 3) Rev and compress CSS and JS files (this is done after assets, so that if a
// referenced asset hash changes, the parent hash will change as well
const revCSS: ITimplaTask = ({ dest }) => () => {
return gulp
.src(projectDestPath('**/*.css'))
.pipe(rev())
.pipe(gulp.dest(dest))
.pipe(revNapkin({ verbose: false, force: true, fallbackCwd: TIMPLA_PROCESS.PROCESS_CWD }))
.pipe(
rev.manifest(projectDestPath('rev-manifest.json'), {
merge: true,
})
)
.pipe(gulp.dest('./'))
}
export default revCSS
|