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

在用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教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!