22 lines
471 B
JavaScript
22 lines
471 B
JavaScript
import { series, watch as _watch } from 'gulp';
|
|
|
|
import path from "path";
|
|
import del from "del";
|
|
|
|
import buildSass, { ACCOUNTS_DIR } from "./gulp/sass";
|
|
|
|
const STATIC_DIR = path.join("src", "newsreader", "static");
|
|
|
|
function clean(){
|
|
return del([
|
|
`${ACCOUNTS_DIR}/accounts/dist/css/*`,
|
|
]);
|
|
};
|
|
|
|
export function watch(){
|
|
_watch(`${STATIC_DIR}/src/scss/**/*.scss`, (done) => {
|
|
series(clean, buildSass)(done);
|
|
});
|
|
};
|
|
|
|
export default series(clean, buildSass);
|