ruby – 使用Middleman App构建时忽略文件夹
发布时间:2020-12-17 02:46:58 所属栏目:百科 来源:网络整理
导读:我想在构建时忽略samples /文件夹.我用过这个 configure :build do activate :asset_hash,:ignore = [/^samples//]end 它不起作用,并且在构建过程中仍然包含该文件夹.有人可以建议吗? 解决方法 将以下代码添加到config.rb文件中: ignore 'samples/*' #ign
我想在构建时忽略samples /文件夹.我用过这个
configure :build do activate :asset_hash,:ignore => [/^samples//] end 它不起作用,并且在构建过程中仍然包含该文件夹.有人可以建议吗? 解决方法
将以下代码添加到config.rb文件中:
ignore 'samples/*' #ignore也接受正则表达式.见the specs. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |