@io-arc/task-browser-sync
Start the local server.
#
UsageOr
package.json
#
Options--proxy <IP address>, -p <IP address>
#
Using proxy.
Specify an IP address for the argument.
--history <file path>
#
File paths used by the HTML5 HistoryAPI.
e.g. /index.html
#
Configure fileIf you want to make detailed settings, please prepare and specify a configuration file.
The configuration file is be placed in the config
directory.
#
Valid file name- /config/browser-sync.yml
- /config/bs.yml
If there are more than one valid files, they are prioritized in the order listed above.
See a BrowserSync options.
#
DefaultSome parameters are specified automatically if not specified.
server
#
Default: outputDir
* If proxy parameter exists then auto delete server
serveStatic
#
Only if siteRoot
isn't a /
.
Default: { route: ['/'], dir: 'dist' }