gajus / isomorphic-webpack

Abstracts universal consumption of application code base using webpack.
Other
291 stars 17 forks source link

Aliases do not work #27

Closed ivn-cote closed 7 years ago

ivn-cote commented 7 years ago

It could an issue with Webpack support. When I set alias configuration for modules resolving, an application is down. I've tried isomorphic-webpack-demo as a sandbox to validate this error happening.

glortho commented 7 years ago

FWIW I could not reproduce this problem. I added an alias to the sample webpack config, used it in components (including css modules), and didn't have encounter any problems:

resolve: {
  alias: {
    '~': path.join( __dirname, 'app' )
  }
}
gajus commented 7 years ago

Closing until further details provided by the OP.

Thank you @glortho.