Answer the question
In order to leave comments, you need to log in
Handlebars webpack search in subdirectories?
Such a file architecture:
-src
--components
----button
------button.hbs|scss|ts
--pages
----index.hbs Registered the
search for modules in webpack:
{
test: /\.(hbs)$/,
use: [
{
loader: 'handlebars-loader',
options: {
precompileOptions: {
noEscape: true
},
partialDirs: [
path.join(__dirname, '../src/components')
]
}
}
]
}
{{#>list-select/list-select}}
{{>select/select title="Adalya" price="1000р*" img="tobacco-1.png"}}
{{>select/select title="Serbetli" price="1000р*" img="tobacco-2.png"}}
{{>select/select title="Sebero" price="1000р*" img="tobacco-3.png"}}
{{>select/select title="Dayli Hookah" price="1000р*" img="tobacco-4.png"}}
{{>select/select title="Darkside" price="1000р*" img="tobacco-5.png"}}
{{/list-select/list-select}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question