代码之家  ›  专栏  ›  技术社区  ›  WP Punk

wppot gulp更改路径

  •  0
  • WP Punk  · 技术社区  · 7 年前

    我有下一个编译代码:

    #: path/from/gulp-folder/to/project-folder/tpl.default.php:121
    msgid "Email"
    msgstr ""
    

    但我需要:

    #: tpl.default.php:121
    msgid "Email"
    msgstr ""
    

    我的吞咽任务:

    return gulp.src( pathToProject + '/**/*' )
        .pipe(sort())
        .pipe(wpPot( {
            domain        : text_domain,
            package       : packageName,
            bugReport     : bugReport,
            lastTranslator: lastTranslator,
            team          : team
    } ))
    .pipe(gulp.dest('/languages/'))
    

    如何更改已编译的代码?

    0 回复  |  直到 7 年前