Remove default proxy
This commit is contained in:
@@ -8,11 +8,20 @@ import paths from '../mconfig.json';
|
||||
import bs from 'browser-sync';
|
||||
|
||||
// Start the Browsersync server
|
||||
bs.init({
|
||||
proxy: paths.url,
|
||||
let bsConfig = {
|
||||
open: false,
|
||||
notify: false
|
||||
});
|
||||
};
|
||||
|
||||
if (typeof paths.proxy === 'string' && paths.proxy.length > 0) {
|
||||
// Use proxy
|
||||
bsConfig.proxy = paths.proxy;
|
||||
} else {
|
||||
// Use base directory
|
||||
bsConfig.server = { baseDir: paths.dest };
|
||||
}
|
||||
|
||||
bs.init(bsConfig);
|
||||
|
||||
// Build scripts, compile styles, concat vendors and generate the svgs sprite on first hit
|
||||
buildScripts();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"url": "locomotive-boilerplate.test",
|
||||
"proxy": "",
|
||||
"src": "./assets/",
|
||||
"dest": "./www/",
|
||||
"build": "./build/",
|
||||
|
||||
Reference in New Issue
Block a user