Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant