forked from rails/webpacker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to define multiple source entry paths
This should add back the ability to namespace packs which was removed in rails#3156 at the cost of needing to specify each of the nested directories in `source_entry_path`. Defining each namespace will make sure directories like `app/javascript/src`, `app/javascript/stylesheets`, etc don't get entries assigned. * Move the entry parsing into `parseEntryPath` in `package/utils/helpers.js` * Change `getEntryObject` to use `parseEntryPath` and to check whether `source_entry_path` is an array * Add a nested pack into the test app
- Loading branch information
1 parent
a0594ff
commit eb75a29
Showing
4 changed files
with
53 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* | ||
* Dummy file #3 for testing namespaced packs | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters