14 lines
305 B
JavaScript
14 lines
305 B
JavaScript
|
/**
|
||
|
* Require Browsersync along with webpack and middleware for it
|
||
|
*/
|
||
|
var browserSync = require('browser-sync').create();
|
||
|
/**
|
||
|
* Run Browsersync and use middleware for Hot Module Replacement
|
||
|
*/
|
||
|
browserSync.init({
|
||
|
server: 'app',
|
||
|
middleware: [
|
||
|
require('compression')()
|
||
|
]
|
||
|
});
|