Messing around with webpack 2
Why does the new alias
config not seem to work:
See: https://gist.github.com/sokra/27b24881210b56bbaff7
Answer, wrap it in resolve
:
{ resolve: { alias: { /* aliases... */ } }
The browser
field doesn't seem to work anymore?
Swap mainFields: ['main', 'browser']
with mainFields: ['browser', 'main']