BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io
https://discord.gg/2d2xUThp
Apache License 2.0
12.19k stars 757 forks source link

Difference between command and bs-config.js as follow... #244

Closed felixortegam closed 10 years ago

felixortegam commented 10 years ago

Hello, what´s the difference between this:

browser-sync start --proxy localhost:8888 --no-open

and this config file:

module.exports = { "files": false, "server": false, "proxy": "192.168.1.41:8888", "port": 3000, "ghostMode": { "clicks": true, "scroll": true, "location": false, "forms": { "submit": true, "inputs": true, "toggles": true } }, "logLevel": "info", "open": false, "browser": "default", "xip": false, "hostnameSuffix": false, "notify": true, "scrollProportionally": true, "scrollThrottle": 0, "reloadDelay": 0, "injectChanges": true, "startPath": null, "minify": true, "logConnections": false, "logFileChanges": true, "host": null, "codeSync": true, "timestamps": true, "debugInfo": true }

With the command line the relatives urls in wordpress works fine (with reload, css inject, etc...), but with the bs-config.js the urls not works, only show html, not css and not js.

P.D.: I´m using latest version of Browser-Sync

Thanks!

felixortegam commented 10 years ago

Sorry, i was using fixed ip in bs-config.js and "localhost" word in command line. With "localhost" word it´s working fine.

Thanks!