소스 검색

Update gulpfile.js

Daniel 2 년 전
부모
커밋
d956ea5d3c
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 8 3
      gulpfile.js

+ 8 - 3
gulpfile.js

@@ -87,6 +87,13 @@ const scss = () => src(paths.src.scss + '/adminlte.scss', { sourcemaps: true })
     .pipe(dest(paths.temp.css, { sourcemaps: '.' }))
     .pipe(browserSync.stream())
 
+// Compile SCSS RTL
+const scssRtl = () => src(paths.temp.css + '/adminlte.css', { sourcemaps: true })
+    .pipe(postcss(postcssRtlOptions))
+    .pipe(rename({ suffix: '.rtl' }))
+    .pipe(dest(paths.temp.css, { sourcemaps: '.' }))
+    .pipe(browserSync.stream())
+
 // Lint TS
 function isFixed(file) {
   // Has ESLint fixed the file contents?
@@ -153,9 +160,7 @@ const serve = () => {
     notify: true
   })
 
-  watch([paths.src.scss], series(lintScss))
-  watch([paths.src.scss + '/**/*.scss', '!' + paths.src.scss + '/bootstrap-dark/**/*.scss', '!' + paths.src.scss + '/dark/**/*.scss'], series(scss))
-  watch([paths.src.scss + '/bootstrap-dark/', paths.src.scss + '/dark/'])
+  watch([paths.src.scss + '/**/*.scss'], series(lintScss, scss, scssRtl))
   watch([paths.src.ts], series(lintTs, tsCompile))
   watch([paths.src.html, paths.src.base + '*.html', paths.src.partials], series(html, index, lintHtml))
   watch([paths.src.assets], series(assets))