Created
January 13, 2019 10:10
-
-
Save BiosBoy/f7194cb691da906e4d95aa0e6f3b6ddc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======================================================== | |
// Server Configuration | |
// ======================================================== | |
browserSync({ | |
open: false, | |
ghostMode: { | |
clicks: false, | |
forms: false, | |
scroll: true | |
}, | |
server: { | |
baseDir: path.resolve(__dirname, '../src'), | |
middleware: [ | |
historyApiFallback(), | |
webpackDevMiddleware(bundler, devMiddlewareOptions), | |
webpackHotMiddleware(bundler) | |
] | |
}, | |
files: [ | |
'src/../*.tsx', | |
'src/../*.ts', | |
'src/../*.jsx', | |
'src/../*.js', | |
'src/../*.json', | |
'src/../*.scss', | |
'src/../*.html' | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment