1
我想使用converse.js並加載它與webpack。 Converse.js負載有模板是這樣的:我如何在webpack中加載一個加載器?
define("converse-templates", [
"tpl!action",
"tpl!add_contact_dropdown",
"tpl!add_contact_form",
,給了我這樣的錯誤:
ERROR in ./apps/chat/static/conversejs/src/templates.js
Module not found: Error: Cannot resolve module 'tpl' in /home/vagrant/workspace/src/apps/chat/static/conversejs/src
resolve module tpl in /home/vagrant/workspace/src/apps/chat/static/conversejs/src
looking for modules in /home/vagrant/workspace/src/node_modules
在我自己的,我的源使用:
define(["app",
"ejs!apps/track_list/main/templates/layout.tpl",
"ejs!apps/track_list/main/templates/command_buttons.tpl",
"ejs!apps/track_...
工作正常與ejs裝載機。我如何在webpack中加載loader指令?