mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
31 lines
566 B
JavaScript
Executable File
31 lines
566 B
JavaScript
Executable File
const bs = require('browser-sync').create();
|
|
|
|
bs.init({
|
|
watch: true,
|
|
server: {
|
|
routes: {
|
|
'/': 'tmp',
|
|
'/dist': 'tmp-dist',
|
|
'/libs': 'static/libs',
|
|
'/tmp-dist/img': 'img',
|
|
'/static': 'static',
|
|
'/node_modules': 'node_modules',
|
|
},
|
|
},
|
|
files: ['tmp/**/*', 'tmp-dist/css/*.css', 'tmp-dist/js/*.js', 'tmp-dist/img/*.svg'],
|
|
watchOptions: {
|
|
ignoreInitial: true,
|
|
},
|
|
reloadDelay: 1000,
|
|
notify: false,
|
|
open: false,
|
|
snippetOptions: {
|
|
rule: {
|
|
match: /<\/head>/i,
|
|
fn: function (snippet, match) {
|
|
return snippet + match;
|
|
}
|
|
}
|
|
}
|
|
});
|