same-name-loader
v0.1.0
Published
auto require the assets whose filename is same to the module
Downloads
1
Readme
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