README
adrenalinehunter-react-scripts
This is a fork from the official Create React App repo.
Changes from original package :
Webpack: resolve.mainFiles config change
Using directory-named-webpack-plugin to change the behavior of Webpack resolver.
When importing a folder, Webpack will look for files named [directory_name].component.[extension]
, [directory_name].[extension]
and index.[extension]
(in that order) instead of just index.[extension]
.
This allows using Angular modules-style directories for React :
MyComponent/
|- MyComponent.component.jsx
|- MyComponent.test.jsx
|- MyComponent.jss.jsx
|- ...
import MyComponent from './MyComponent';
See https://webpack.js.org/configuration/resolve/#resolve-mainfiles.