Closed 75lb closed 7 years ago
this is resolved by the --config-file
option in v2 which is in progress and available for preview.. any feedback welcome.
Config files are now plain javascipt, giving you freedom to share and merge options however you like. The config file (lws.config.js
by default) should look something like this:
module.exports = {
rewrite: [
{
from: '/resources/*',
to: 'http://remote-api.org:8080/resources/$1'
}
],
directory: 'src',
'log.format': 'none'
}
fixed and released in v2.0.0
currently,
ws
merges config loaded frompackage.json
and/or.local-web-server.json
(depending on which exists).Implement a
--config-file
(or similar) option to enable the user to specify a config file name. This would be useful for A/B testing, comparing server results using config A against config B.