Fix comments and variable in watch.js
Amends 14d9f47fe0
Fixed:
- Location of comments.
- Variable `serverConfig` to `const`.
This commit is contained in:
@@ -3,12 +3,9 @@ import { concatVendors } from './concat.js';
|
||||
import { compileStyles } from './styles.js' ;
|
||||
import { generateSpriteSVG } from './svgs.js';
|
||||
import paths from '../mconfig.json';
|
||||
|
||||
// Create an named instance in one file...
|
||||
import server from 'browser-sync';
|
||||
|
||||
// Start the Browsersync server
|
||||
let serverConfig = {
|
||||
const serverConfig = {
|
||||
open: false,
|
||||
notify: false
|
||||
};
|
||||
@@ -23,6 +20,7 @@ if (typeof paths.url === 'string' && paths.url.length > 0) {
|
||||
};
|
||||
}
|
||||
|
||||
// Start the Browsersync server
|
||||
server.init(serverConfig);
|
||||
|
||||
// Build scripts, compile styles, concat vendors and generate the svgs sprite on first hit
|
||||
|
||||
Reference in New Issue
Block a user