Skip to content

Commit

Permalink
fix(generators): clean entry file name extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Nov 5, 2018
1 parent 2e36d79 commit a5a8ac7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/generators/utils/entry.ts
Expand Up @@ -77,9 +77,7 @@ export default function entry(self: IEntry, answer: {
!entryPropAnswer[val].includes("path") &&
!entryPropAnswer[val].includes("process")
) {
entryPropAnswer[val] = `\'${entryPropAnswer[val]
.replace(/"|'/g, "")
.concat(".js")}\'`;
entryPropAnswer[val] = `\'${entryPropAnswer[val].replace(/"|'/g, "")}\'`;
}
webpackEntryPoint[val] = entryPropAnswer[val];
});
Expand Down

0 comments on commit a5a8ac7

Please sign in to comment.