handlebars-loader
handlebars-loader copied to clipboard
Can I set the partial name prefix using the module resolver?
@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?
yes i want to do same with you!