You can configure resolve.modules
to also look in bower_components
.
resolve: {
modules: ['bower_components', 'node_modules']
}
This will first look into bower_components
and if it can't find the module it will look into node_modules
. If you don't inlcude node_modules
you won't be able to use packages installed from npm.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.