Closed Neobii closed 4 years ago
I think we should create create a new collections.js
file that imports all the collections make modules/index.js
file like this:
import './collections'
import './routes';
import './components';
This way, your collections are always imported above the routes and components and whenever we generate a new module, it can just append it to the collections.js
file.
Here's the changes I need to make. Note, this is a different file structure convention that in the examples.
When creating a new module, the import statement should be above the routes and components import.