browsersync.js 572 字节
Newer Older
1 2 3 4 5 6 7
/*
 * Tabler (v0.9.0): browsersync.js
 * Copyright 2018-2019 The Tabler Authors
 * Copyright 2018-2019 codecalm
 * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
 */

C
chomik 已提交
8 9 10 11 12 13
const bs = require('browser-sync').create();

bs.init({
  watch: true,
  server: {
    routes: {
C
chomik 已提交
14 15
      '/': 'tmp',
      '/dist': 'dist',
C
codecalm 已提交
16
      '/dist/fonts': 'fonts',
C
chomik 已提交
17 18
      '/libs': 'static/libs',
      '/img': 'static/img',
D
Damian Sznajder 已提交
19
    },
C
chomik 已提交
20
  },
C
chomik 已提交
21
  files: ['tmp/**/*', 'dist/css/*.css', 'dist/js/*.js'],
C
chomik 已提交
22
  watchOptions: {
D
Damian Sznajder 已提交
23
    ignoreInitial: true,
C
chomik 已提交
24
  },
D
Damian Sznajder 已提交
25
  notify: false,
C
codecalm 已提交
26
  open: false
C
chomik 已提交
27
});