webpack - Having problems with resolve.root -


here directory structure:

src/ └── scripts     ├── app.js     ├── components     │   ├── main.js     │   └── navbar.js     └── index.js 

webpack.config.js , src/ siblings , here resolve part:

resolve: {     root: path.resolve('./src/scripts'),     extensions: ['', '.js'] } 

shouldn't able require('components/navbar')?

webpack says can't resolve it.

thanks.

edit: problem was using 2.0.0-beta. downgraded 1.12.12 , works.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -