1 Star 0 Fork 0

强森/material-dashboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gulpfile.js 887 Bytes
一键复制 编辑 原始数据 按行查看 历史
Stefan Moldovan 提交于 2020-02-11 15:49 . Fix: broken links fixing
var gulp = require('gulp');
var path = require('path');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var open = require('gulp-open');
var Paths = {
HERE: './',
DIST: 'dist/',
CSS: './assets/css/',
SCSS_TOOLKIT_SOURCES: './assets/scss/material-dashboard.scss',
SCSS: './assets/scss/**/**'
};
gulp.task('compile-scss', function() {
return gulp.src(Paths.SCSS_TOOLKIT_SOURCES)
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer())
.pipe(sourcemaps.write(Paths.HERE))
.pipe(gulp.dest(Paths.CSS));
});
gulp.task('watch', function() {
gulp.watch(Paths.SCSS, gulp.series('compile-scss'));
});
gulp.task('open', function() {
gulp.src('examples/dashboard.html')
.pipe(open());
});
gulp.task('open-app', gulp.parallel('open', 'watch'));
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huahua191024/material-dashboard.git
git@gitee.com:huahua191024/material-dashboard.git
huahua191024
material-dashboard
material-dashboard
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385