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

Can I set the partial name prefix using the module resolver? #186

Open
trustyoo86 opened this issue Jul 31, 2019 · 1 comment
Open

Can I set the partial name prefix using the module resolver? #186

trustyoo86 opened this issue Jul 31, 2019 · 1 comment

Comments

@trustyoo86
Copy link

trustyoo86 commented Jul 31, 2019

@pcardune
I would like to set the alias through the resolve option of the webpack in the project. I want to be able to apply this option to the handlebars-loader too.

For example, My project scaffolding is as follows.

partials
    |--pc
          |--partial.hbs

I want to set the following in my webpack config:

{
  resolve: {
    alias: {
      '_pc': path.resolve('partials', 'pc')
    }
  }
}

I want to use alias apart from the folder name.
Can I use _pc alias in plugin?

@cxt19951016
Copy link

yes i want to do same with you!

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