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

Support for Idea IDE (webstorm, ...) [solution] #105

Open
borgius opened this issue Aug 6, 2020 · 1 comment
Open

Support for Idea IDE (webstorm, ...) [solution] #105

borgius opened this issue Aug 6, 2020 · 1 comment

Comments

@borgius
Copy link

borgius commented Aug 6, 2020

Hi guys,

If we need to add support to Idea IDE I found the easiest way is creating webpack.config.js (even if you do not use it)
with:

const path = require('path');

const moduleAliases = require('./package.json')._moduleAliases;
const alias = {};

for (const key in moduleAliases) {
  alias[key] = path.resolve(__dirname, moduleAliases[key]);
}

module.exports = {
  resolve: { alias },
};

Good luck!

@Kehrlann
Copy link
Collaborator

Kehrlann commented Aug 7, 2020

That's a very interesting suggestion, thank you. Do you want to do a PR for the README ? You could do something like

idea-based IDE support

Please see issue #105 .

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