mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 09:54:24 +04:00
28 lines
572 B
JavaScript
Executable File
28 lines
572 B
JavaScript
Executable File
/*
|
|
* 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)
|
|
*/
|
|
|
|
const bs = require('browser-sync').create();
|
|
|
|
bs.init({
|
|
watch: true,
|
|
server: {
|
|
routes: {
|
|
'/': 'tmp',
|
|
'/dist': 'dist',
|
|
'/dist/fonts': 'fonts',
|
|
'/libs': 'static/libs',
|
|
'/img': 'static/img',
|
|
},
|
|
},
|
|
files: ['tmp/**/*', 'dist/css/*.css', 'dist/js/*.js'],
|
|
watchOptions: {
|
|
ignoreInitial: true,
|
|
},
|
|
notify: false,
|
|
open: false
|
|
});
|