mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-13 04:16:34 +03:00
Rename css into scss
This commit is contained in:
parent
418dc6316d
commit
5bf1e62c75
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
source: 'lib/**/*.js',
|
source: 'lib/**/*.js',
|
||||||
html: 'lib/**/*.html',
|
html: 'lib/**/*.html',
|
||||||
css: 'lib/**/*.css',
|
scss: 'lib/**/*.scss',
|
||||||
sourceEntryPoint: 'lib/index.js',
|
sourceEntryPoint: 'lib/index.js',
|
||||||
outputName: 'redoc.full.js',
|
outputName: 'redoc.full.js',
|
||||||
output: 'dist/',
|
output: 'dist/',
|
||||||
|
|
|
@ -35,7 +35,7 @@ var JS_DEV_DEPS = [
|
||||||
];
|
];
|
||||||
|
|
||||||
gulp.task('sass', function () {
|
gulp.task('sass', function () {
|
||||||
return gulp.src(paths.css, { base: './' })
|
return gulp.src(paths.scss, { base: './' })
|
||||||
.pipe(sass.sync().on('error', sass.logError))
|
.pipe(sass.sync().on('error', sass.logError))
|
||||||
.pipe(gulp.dest(paths.tmp));
|
.pipe(gulp.dest(paths.tmp));
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,6 +9,6 @@ function changed(event) {
|
||||||
gulp.task('watch', ['build'], function () {
|
gulp.task('watch', ['build'], function () {
|
||||||
gulp.watch([ paths.source ], [ 'bundle', browserSync.reload ]).on('change', changed);
|
gulp.watch([ paths.source ], [ 'bundle', browserSync.reload ]).on('change', changed);
|
||||||
gulp.watch([ paths.html ], [ 'bundle', browserSync.reload]).on('change', changed);
|
gulp.watch([ paths.html ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||||
gulp.watch([ paths.css ], [ 'bundle', browserSync.reload]).on('change', changed);
|
gulp.watch([ paths.scss ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||||
gulp.watch([ paths.demo ], [ '', browserSync.reload ]).on('change', changed);
|
gulp.watch([ paths.demo ], [ '', browserSync.reload ]).on('change', changed);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user