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

Add top-level 'aliases' config to webpack config #125

Closed
insin opened this issue Jul 4, 2016 · 0 comments
Closed

Add top-level 'aliases' config to webpack config #125

insin opened this issue Jul 4, 2016 · 0 comments

Comments

@insin
Copy link
Owner

insin commented Jul 4, 2016

This is a common piece of config in my projects once they grow to any size:

  webpack: {
    extra: {
      resolve: {
        alias: {
          'img': path.resolve('src/img'),
          'src': path.resolve('src')
        }
      }
    }
  }

It would be handier to configure it as:

  webpack: {
    aliases: {
      'img': path.resolve('src/img'),
      'src': path.resolve('src')
    }
  }

(I've been tripped up in the past by forgetting the resolve object, too).

insin added a commit that referenced this issue Jul 20, 2016
@insin insin mentioned this issue Jul 20, 2016
10 tasks
@insin insin closed this as completed in e87ca8c Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant