forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGulpfile.js
More file actions
33 lines (27 loc) · 831 Bytes
/
Gulpfile.js
File metadata and controls
33 lines (27 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const gulp = require('gulp');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const config = require('./config/paths');
gulp.task('css', function() {
return gulp
.src('src/homepage/**/*.css')
.pipe(postcss([autoprefixer, cssnano]))
.pipe(gulp.dest(`${config.appBuild}/`));
});
gulp.task('javascript', function() {
return gulp
.src('src/homepage/**/*.js')
.pipe(gulp.dest(`${config.appBuild}/`));
});
gulp.task('html', function() {
return gulp
.src('src/homepage/**/*.html')
.pipe(gulp.dest(`${config.appBuild}/`));
});
gulp.task('static', function() {
return gulp
.src(`${config.staticPath}/**/*`)
.pipe(gulp.dest(`${config.appBuild}/`));
});
gulp.task('default', ['css', 'html', 'javascript', 'static']);