modules config in webpack 2
diegohaz opened this issue · comments
I have a webpack config with the following:
resolve: {
modules: ['app', 'node_modules'],
}
But it seems to not work with universal-webpack
. I've tried using alias
, but it still doesn't work.
All modules are external
for server-side configuration, therefore Node.js doesn't know how to require('app/...')
.
Use exclude_from_externals
setting
https://github.com/halt-hammerzeit/universal-webpack#advanced-configuration
Or use resolve.alias
instead
FYI the newest 0.2.0
release now only supports Webpack 2.
It works for my project.
If you find any bugs in the new version then create an issue.