require to import
exports are not working
This commit is contained in:
parent
f7a5481fd2
commit
da075e5beb
7 changed files with 69 additions and 72 deletions
|
|
@ -1,26 +0,0 @@
|
|||
const config = require('../config');
|
||||
// const browserSync = require('browser-sync'), server = browserSync.create();
|
||||
const server = require('browser-sync').create();
|
||||
|
||||
// Automagically reload browsers
|
||||
function reload(done) {
|
||||
server.reload;
|
||||
|
||||
done();
|
||||
}
|
||||
|
||||
// Serve files to the browser
|
||||
function serve(done) {
|
||||
server.init({
|
||||
index: config.index,
|
||||
open: false,
|
||||
server: config.dev
|
||||
});
|
||||
|
||||
done();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
serve: serve,
|
||||
reload: reload
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue