We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
效果是将text插件加载的模块直接变成字符串,如:
text
// foo.tpl <div> Hello World </div> // foo.js var fooText = require('text!./foo.tpl');
编译后:
var fooText = '<div>\n HelloWorld\n</div>';
The text was updated successfully, but these errors were encountered:
目标文件不一定是HTML格式的,所以不能使用html2js等工具,只能当纯文本看待
html2js
Sorry, something went wrong.
leeight
No branches or pull requests
效果是将
text
插件加载的模块直接变成字符串,如:编译后:
The text was updated successfully, but these errors were encountered: