2018-12-28 10:47:35 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const gulp = require('gulp');
|
|
|
|
const build = require('@microsoft/sp-build-web');
|
2024-10-02 13:59:17 -04:00
|
|
|
|
2018-12-28 10:47:35 -05:00
|
|
|
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
|
|
|
|
2022-04-05 19:15:55 -04:00
|
|
|
var getTasks = build.rig.getTasks;
|
|
|
|
build.rig.getTasks = function () {
|
|
|
|
var result = getTasks.call(build.rig);
|
2018-12-28 10:47:35 -05:00
|
|
|
|
2022-04-05 19:15:55 -04:00
|
|
|
result.set('serve', result.get('serve-deprecated'));
|
2018-12-28 10:47:35 -05:00
|
|
|
|
2022-04-05 19:15:55 -04:00
|
|
|
return result;
|
|
|
|
};
|
|
|
|
|
2024-10-02 13:59:17 -04:00
|
|
|
// Custom task to copy assets
|
|
|
|
gulp.task('copy-assets', function () {
|
|
|
|
return gulp.src('src/assets/**/*')
|
|
|
|
.pipe(gulp.dest('lib/assets'))
|
|
|
|
.pipe(gulp.dest('dist/assets'));
|
|
|
|
});
|
|
|
|
build.task('pre-copy', gulp.series('copy-assets'));
|
|
|
|
// build.rig.addPostBuildTask(gulp.task('copy-assets'));
|
2022-04-05 19:15:55 -04:00
|
|
|
build.initialize(require('gulp'));
|