123456789101112131415161718192021 |
- import browserSync from 'browser-sync'
- browserSync({
- watch: true,
- files: ["dist/*"],
- server: {
- baseDir: 'demo',
- routes: {
- '/node_modules': 'node_modules',
- '/dist/css': `dist/css`,
- '/dist/js': `dist/js`,
- '/dist/img': `dist/img`,
- '/static': `static`,
- },
- port: 3000,
- open: false,
- host: 'localhost',
- notify: false,
- reloadOnRestart: true,
- },
- });
|