lib/middleman-fontcustom/extension.rb in middleman-fontcustom-0.1.1 vs lib/middleman-fontcustom/extension.rb in middleman-fontcustom-0.2.0
- old
+ new
@@ -6,10 +6,11 @@
option :source_dir, 'assets/fontcustom', 'Folder contains icon files'
option :fonts_dir, 'source/fonts', 'Folder to output fonts'
option :css_dir, 'source/stylesheets', 'Folder to output css'
option :templates, 'scss', 'Output templates'
option :no_hash, true, 'Create hash for no cache policy'
+ option :preprocessor_path, nil, 'Relative path from your compiled CSS to your output directory'
def initialize(app, options_hash={}, &block)
super
return unless app.environment == :development
@@ -23,10 +24,11 @@
:output => {
:fonts => config[:fonts_dir],
:css => config[:css_dir]
},
:templates => config[:templates].split(/\s/),
- :no_hash => config[:no_hash]
+ :no_hash => config[:no_hash],
+ :preprocessor_path => config[:preprocessor_path]
}).compile
}
app.ready do