Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以混合文件类型并使用单个包添加过滤器,例如
css = Bundle( 'css/reset.css', 'css/style.css', 'css/fancybox.css', 'css/custom.less', output='gen/packed.css', filters=['less'] )
我希望所有的 css 和 less 输出到同一个文件,即gen/packed.css
gen/packed.css
您需要像这样设置捆绑包:
css = Bundle( 'css/reset.css', 'css/style.css', 'css/fancybox.css', Bundle('css/*.less', filters='less', debug=False) output='gen/packed.css' )
http://elsdoerfer.name/docs/webassets/css_compilers.html