handlebars-loader icon indicating copy to clipboard operation
handlebars-loader copied to clipboard

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

Open trustyoo86 opened this issue 5 years ago • 1 comments

@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?

trustyoo86 avatar Jul 31 '19 04:07 trustyoo86

yes i want to do same with you!

cxt19951016 avatar Sep 01 '21 08:09 cxt19951016