Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md5-renamer支持输出名模板 #234

Closed
leeight opened this issue Apr 18, 2014 · 1 comment
Closed

md5-renamer支持输出名模板 #234

leeight opened this issue Apr 18, 2014 · 1 comment

Comments

@leeight
Copy link
Member

leeight commented Apr 18, 2014

搬家 ecomfe/edp-build#39

@leeight
Copy link
Member Author

leeight commented Apr 30, 2014

支持了outputTemplate属性,升级到edp-build@1.0.6即可

var p1 = new MD5Renamer({
    files: [
        'issue-235.html',   // 如果不配置*.html,那么实际上是不会处理这个文件的
        '*.js', '*.css', '*.gif'
    ],
    replacements: {
        html: [
            'issue-235.html'
        ],
        css: [
            'src/**/*.css'
        ]
    },
    outputTemplate: '{basename}-{md5sum}{extname}',
    start: 1,
    end: 12
});

@leeight leeight closed this as completed Apr 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant