grunt-text-replaceを使ってバージョンを表記するようにした

replace: {
    siteInformation: {
        src: ['<%= config.dist %>/*.html'],
        dest: '<%= config.dist %>/',
        replacements: [{
            from: '\{\{pkg.version\}\}',
            to: 'v<%= pkg.version %>'
        }]
    }
},

Comments

comments powered by Disqus