javascript - npm grunt-contrib-jade 文件名 为目录
高洛峰
高洛峰 2017-04-11 13:14:20
0
0
358

在用grunt做一个微信小程序的工具,如下,如何将jade文件的文件名作为目录的名字呢
src设置为 "*.jade",dest应该怎么设置"page/??",看了文档好像找不到解决方法

module.exports = function(grunt) {

grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),
jade: {
  debug: {
    options: {
      "pretty":true,
      data: {
        debug: true,
        timestamp: "<%= new Date().getTime() %>"

      }
    },
  },
compile:{
  files: [{
          cwd: "jade",
          src: "*.jade",
          dest: "page/",
          expand: true,
          ext: ".wxml"
  }],
},

},
......................

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

모든 응답(0)
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!