underscore-template-loader
underscore-template-loader copied to clipboard
A Underscore and Lodash template loader for Webpack
I am using html-loader and underscore-template-loader. Together they don't work properly. I just need to port the repetitive parts of the page. **webpack.config** ``` // Модуль path предоставляет утилиты для...
Hey, I am trying to use the loader for backbone/marionette project I am getting an error in the console says `Uncaught SyntaxError: Strict mode code may not include a with...
The main change here was to get rid of custom `file-loader` usage. Of course I'm not aware why it was initially introduced, but from my findings and use cases the...
您好 我这边对您的项目做了少许变动,添加换行支持以及ES6模板字符串支持,目前是可以换行了,但是好像不能任意的换多行,我觉得是正则表达式需要优化。传入的数据不再是不再是完全的json,普通的js对象也行。 然后去掉了自带的file-loader,因为它在webpack 4.43.0 和 nodejs 12.18.2中使用时,页面中引入图片会出bug,输入的内容不是打包后的图片地址,而是一个[object Module],这个我处理一下,也处理了require时包含default属性的问题。 
I want to have hash suffix of img path after webpack build, but I don‘t know how to config. I can only get the background images have hash suffix, but...
Hello, I am having some problems with this loader. I need to output unescaped data in this div, but it always bothers me for a long time. We look forward...
```html sss sss ``` ```js // webpack rules: [{ test: /\.t\.html$/, loader: 'underscore-template-loader', query: { engine: 'lodash' } }] // code let tmpl = require('@/a.t.html'); tmpl() ``` ## result ```...
I am writing custom jest transfomer for ejs templates something like this ``` const temp = require('underscore-template-loader'); module.exports = { process(src) { return temp(src); }, }; ``` i am getting...
Hello! I'm trying to use this loader to import partials into other partials or html files and I would like to use paths from the root of my `src/` in...
It would be cool if we could use variables with the require and include macros, but it looks like they can only accept string, number, boolean and objects at the...