Sha256: 41ebb2bb37bd1c0ce3989b6c59f876ac72ec73282192fc7f583f597c5cbfc3b0

Contents?: true

Size: 1.79 KB

Versions: 5

Compression:

Stored size: 1.79 KB

Contents

# middleman-remove-indent

[![Gem Version](https://badge.fury.io/rb/middleman-remove-indent.svg)](http://badge.fury.io/rb/middleman-remove-indent)
[![Build Status](https://travis-ci.org/yterajima/middleman-remove-indent.svg?branch=master)](https://travis-ci.org/yterajima/middleman-remove-indent)

`middleman-remove-indent` は [Middleman](http://middlemanapp.com/) の拡張機能です。  
この拡張機能は build したファイル (例: .html, .css) からインデントを削除します。

## インストール 

Gemfile に次の行を追加してください:

    gem 'middleman-remove-indent'

コマンドを実行します:

    $ bundle

Gemfile を使わずにインストールする場合は次のコマンドを実行してください:

    $ gem install middleman-remove-indent

## 使い方

`config.rb` に記述します:

```ruby
configure :build do
  activate :remove_indent
end
```

この場合, `middleman-remove-indent` は `build/*.html` と `build/*.css` に該当するファイルからインデントを削除します。  
`*.html` ファイルのみインデントを削除したい場合には, `:exts` オプションを変更します:

```ruby
configure :build do
  activate :remove_indent, :exts => %w(.html) # default:  %w(.html .css)
end
```

さらに, `build` 後のファイルから空行を削除したい場合, `:remove_blank_line` オプションを利用できます:

```ruby
configure :build do
  activate :remove_indent, :remove_blank_line => true # default: false
end
```

## Contributing

1. Fork it ( http://github.com/yterajima/middleman-remove-indent/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
middleman-remove-indent-1.1.3 README.jp.md
middleman-remove-indent-1.1.1 README.jp.md
middleman-remove-indent-1.1.0 README.jp.md
middleman-remove-indent-1.0.1 README.jp.md
middleman-remove-indent-1.0.0 README.jp.md