<commit_before>import gulp from 'gulp'
import path from 'path'
import BrowserSync from 'browser-sync'
import { compiler, handleWebpackResults } from '../webpack/compiler'

const browserSync = BrowserSync.create()
const args = global.__args
const themeDir = path.resolve(__pkg._themepath)
const themeRelPath = themeDir.replace(process.cwd()+'/', '')

gulp.task('dev', ['build'], ()=> {
  compiler.watch({}, handleWebpackResults(true))
  gulp.watch(`${themeRelPath}/scss/**/*.scss`, ['styles'])
  gulp.watch(`${themeRelPath}/images/**/*`, ['images'])
  gulp.watch(`${themeRelPath}/fonts/**/*`, ['static'])

  if (args.sync) {
    browserSync.init({
      proxy: __pkg._criticalUrl,
      files: [
        `${themeRelPath}/assets/js/*.js`,
        `${themeRelPath}/**/*.php`
      ]
    })
  }
})<commit_msg>Make sure CSS files are watched<commit_after>import gulp from 'gulp'
import path from 'path'
import BrowserSync from 'browser-sync'
import { compiler, handleWebpackResults } from '../webpack/compiler'

const browserSync = BrowserSync.create()
const args = global.__args
const themeDir = path.resolve(__pkg._themepath)
const themeRelPath = themeDir.replace(process.cwd()+'/', '')

gulp.task('dev', ['build'], ()=> {
  compiler.watch({}, handleWebpackResults(true))
  gulp.watch(`${themeRelPath}/scss/**/*.scss`, ['styles'])
  gulp.watch(`${themeRelPath}/images/**/*`, ['images'])
  gulp.watch(`${themeRelPath}/fonts/**/*`, ['static'])

  if (args.sync) {
    browserSync.init({
      proxy: __pkg._criticalUrl,
      files: [
        `${themeRelPath}/assets/js/*.js`,
        `${themeRelPath}/assets/css/*.css`,
        `${themeRelPath}/**/*.php`
      ]
    })
  }
})
{'fraction_non_alphanumeric': 0.20394736842105263, 'fraction_numerical': 0.0, 'mean_word_length': 4.085106382978723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3467936', 'n_tokens_mistral': 552, 'n_tokens_neox': 546, 'n_words': 100}