Skip to content

Commit

Permalink
cli(entry): multiple entries quotes sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Apr 6, 2018
1 parent f191db0 commit cbaa665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/utils/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = (self, answer) => {
n[val].indexOf("path") < 0 &&
n[val].indexOf("process") < 0
) {
n[val] = `"${n[val]}.js"`;
n[val] = `\'${n[val].replace(/"|'/g,"").concat(".js")}\'`;
}
webpackEntryPoint[val] = n[val];
});
Expand Down Expand Up @@ -68,7 +68,7 @@ module.exports = (self, answer) => {
entryPropAnswer[val].indexOf("path") < 0 &&
entryPropAnswer[val].indexOf("process") < 0
) {
entryPropAnswer[val] = `"${entryPropAnswer[val]}.js"`;
entryPropAnswer[val] = `\'${entryPropAnswer[val].replace(/"|'/g,"").concat(".js")}\'`;
}
webpackEntryPoint[val] = entryPropAnswer[val];
});
Expand Down

0 comments on commit cbaa665

Please sign in to comment.