gulp-html2js icon indicating copy to clipboard operation
gulp-html2js copied to clipboard

I want to use option, rename. How can I use ?

Open verystrongjoe opened this issue 10 years ago • 1 comments

I am changing from grunt to gulp.

my configuration is like the following. html2js: { default_options: { options: { base: '<%=devDir%>', rename: function(moduleName) { return '/' + moduleName; } }, src: ['<%= src.tpl%>','<%=src.data%>'], dest: '<%=distDir%>/<%=pkg.name%>.templates.js', module: 'app.templates' } },

Now, I want to use rename option in the gulp. But, available options are all like the follwings? base - project source path default to "." quoteChar - default to " indentString - default to " " (two spaces) target (coffee support to be added) useStrict - default to false outputModuleName - default ot module name

I want to use option, rename. How can I use ?

verystrongjoe avatar Feb 23 '15 14:02 verystrongjoe

Hello,

You can use the CONCAT pipe (gulp-concat) or the RENAME pipe (gulp-rename). This module does not have a RENAME option integrated.

flaviu-chelaru avatar Dec 04 '15 13:12 flaviu-chelaru