Questions tagged [webpack-handlebars-loader]
11 questions
8
votes
1 answer
Handlebars moves '@partial-block' content to end of page
I am using handlebars with webpack and handlebars-loader (A handlebars template loader for webpack.) to implement a multi page web app. Below is the structure of my views folder (.hbs…

masoud
- 321
- 5
- 15
7
votes
2 answers
Handlebars Loader with Webpack 4
I have been looking at examples of how to use the handlebars-loader with webpack but none seem to be working with webpack 4.
Error
ERROR in ./src/templates/property-list-item.hbs
Module build failed: TypeError: Cannot read property…

Redtama
- 1,603
- 1
- 18
- 35
4
votes
2 answers
Custom helper with handlebars-loader
I'm using this handlebars-loader for webpack 4. Now I wanted to use a custom helper, but i only get this error
ERROR in Template execution failed: TypeError: __default(...).call is not a function
ERROR in TypeError: __default(...).call is not a…

Gregor Voinov
- 2,203
- 7
- 34
- 52
3
votes
0 answers
How to use handlebars-loader in a Create React App project?
I'd like to import a Handlebars file as a template in my CRA project.
This is my current setup, adapted from React-App- Rewired won't add Babel Plugin, handlebars-loader, and customize-cra
config-overrides.js
const { override } =…

stuart
- 1,785
- 2
- 26
- 38
3
votes
2 answers
How to use handlebars with webpacker
I have a rails 5.1 app which makes use of the webpacker gem. My package.json file is as follows:
{
"dependencies": {
"@rails/webpacker": "^3.0.1",
"handlebars": "^4.0.10",
"handlebars-loader": "^1.6.0",
"jquery": "^3.2.1"
},
…

Francois
- 693
- 5
- 14
2
votes
1 answer
webpack handlbars-loader: inlineRequires doesn't work with dynamic path
I have a simple partial
But i get this error message.
ERROR in…

Gregor Voinov
- 2,203
- 7
- 34
- 52
1
vote
0 answers
Handlebars-loader with inline partials
Seems like handlebars-loader doesn't handle inline partials as I expected.
I want you use them in the same way as {{> @partial-block}}.
Lets say we have index.hbs
{{#>wrapper}}
{{#*inline "column1"}}
This is test for col 1
…

a1mak
- 73
- 1
- 5
1
vote
0 answers
Webpack handlebars loader - is there a way to inject context/parameters?
I'm currently trying to setup webpack-dev-middleware (the middleware used in webpack-dev-server, but hosted in my own node application).
One of the requirements I have is to be able to parse my application "index.hbs" through handlebars & then…

kubal5003
- 7,186
- 8
- 52
- 90
0
votes
2 answers
Loading Webpack handlebars images with file-loader
Not sure if I'm approaching this correctly, but I'm trying to use handlebars templates with file-loader in Webpack. The issue I'm having is the assets folder I have with images isn't being copied over to the dist folder, and the img src is being…

ski760
- 151
- 2
- 14
0
votes
1 answer
Can Webpack proccess nested css in Handlerbars template
i'm working in little project, i use webpack for generate the bundle packs of my js and css code all is fine, but i trying to do a web component that import the css style
i read here that i can use a common

Alejandro Mora
- 157
- 3
- 16
0
votes
1 answer
express-handlebars & webpack - can't export partials and helpers in multiple paged app
I am using handlebars for my templating needs. I obviously need to render some templates on the server to handle building standard layout (with header, footer, navbar and content panel etc). But I also require some client side templating so that I…

apostrophedottilde
- 867
- 13
- 36