Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !5872

Add support for DirectoryNamedWebpackPlugin

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/timlogemann/pluginadd into master Nov 21, 2018
  • Overview 5
  • Commits 2
  • Pipelines 0
  • Changes 3

Created by: timlogemann

I would like to add support for the DirectoryNamedWebpackPlugin.

This allows users like myself to create file structures similar to:

components/
  |- Counter/
     |- Counter.jsx
     |- Counter.css
  |- ... tens of other modules...

Rather than:

components/
  |- Counter/
     |- index.js
     |- Counter.jsx
     |- Counter.css
  |- ... tens of other modules...

Which can save you from writing hundreds of index.js files just to import and export the default component.

Some screenshots detailing the effects of this change: screenshot 2018-11-21 at 17 09 53 screenshot 2018-11-21 at 17 09 47

I've added true by default for the plugin as it will use an existing index.js over a file with the same name as the parent directory.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/timlogemann/pluginadd