Middleman仍在创建标准资产文件夹


0

我刚刚安装了中间人来主要加速我的静态网站创建工作流程。每个都按照我想要的方式工作(My * .html.erb文件正确编译为* .html)但是Middleman仍在创建javascripts,样式表和图像文件夹,例如images文件夹中的middleman.png。但我更改了config.rb中文件的文件夹:

activate :automatic_image_sizes
set :css_dir, 'data.main/css'
set :js_dir, 'data.main/js'
set :images_dir, 'data.main/img'
configure :build do
end

我究竟做错了什么?对不起,这可能是一个愚蠢的问题,但我是米德尔曼的新手。

Answers:


0

找到了解决方案:

activate :automatic_image_sizes
set :css_dir, '/data.main/css'
set :js_dir, '/data.main/js'
set :images_dir, '/data.main/img'
configure :build do
end

修复它......

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.