Skip to content

auto require the assets whose filename is same to the module

License

Notifications You must be signed in to change notification settings

Ginhing/same-name-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

same-name-loader

auto require the assets whose filename is same to the module

example

say we have:

└── components
    └── menu
        ├── index.js
        ├── menu.sass
        └── menu.tpl
      ...

In other module

require('same-name?ext=sass!./menu')

will require the ./menu/menu.sass also

License

MIT

About

auto require the assets whose filename is same to the module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages