Pylons webhelpers 缩小文件名太长
我正在使用 pylons“minify”webhelper 来缩小并组合我的所有 javascript/css 文件。助手似乎连接了所有文件名并使用结果作为组合版本的名称。我有很多正在组合的 JavaScript 文件,生成的文件名给出了错误:
IOError: [Errno 63] File name too long
有没有办法手动指定文件名或缩短它而不更改帮助程序代码?
I'm using the pylons "minify" webhelper to minify and combine all of my javascript/css files. It seems the helper concatenates all of the file names and uses the result as the name for the combined version. I have a lot of JavaScript files that are being combined and the resulting file name is giving the error:
IOError: [Errno 63] File name too long
Is there any way to manually specify the file name or shorten it without changing the helper code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,MinificationWebHelpers 向 WebHelpers javascript_link 和 stylesheet_link 函数添加以下选项:
所以看起来您可以将组合文件名设置为您想要的名称
Basicaly MinificationWebHelpers adds following options to the WebHelpers javascript_link and stylesheet_link functions:
So it looks like you can set combined_filename to whatever you want the name to be