Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack alias doesn't work #33

Closed
Vija02 opened this issue Jan 21, 2017 · 1 comment
Closed

Webpack alias doesn't work #33

Vija02 opened this issue Jan 21, 2017 · 1 comment

Comments

@Vija02
Copy link

Vija02 commented Jan 21, 2017

Hi there, I tried to alias through webpack but it doesn't seem to work. Here's my config

backpack.config.js

module.exports = {
  webpack: (config) => {
    config.resolve.alias = {
      "react": "preact-compat"
    }
    return config
  }
}

Please take a look at it, Thanks!

@jaredpalmer
Copy link
Owner

So I don't suggest using react or preact with this kit yet. It will work, but you won't get things like hot loading working the way u would like them too. However, i am working on a PR now that will support this, so stay tuned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants