Fix an issue with multiple parameters not working after webpack build

This commit is contained in:
Pratik Borsadiya 2018-12-08 13:52:10 +05:30
parent 07f159e8aa
commit 1a087c7243
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"scripts": {
"dev": "webpack -d --watch --progress & node node-server",
"build": "webpack -p --progress",
"analyze": "webpack --profile --json > stats.json && webpack-bundle-analyzer stats.json ./build -p 9999",
"analyze": "webpack -p --profile --json > stats.json && webpack-bundle-analyzer stats.json ./docs -p 9999",
"format": "prettier -l --write \"**/*{js,scss}\" "
},
"repository": {

View File

@ -29,7 +29,7 @@ export default angular
var uriSettings = _.cloneDeep(settings);
_.each(uri, function(uri_element) {
if (uri_element.startsWith("--")) {
uri_options = uri_element.split(/--|=(.*)/);
var uri_options = uri_element.split(/--|=(.*)/);
if (uri_options.length > 2) {
uriSettings[uri_options[2]] = uri_options[3] || "true";
}