Created
July 18, 2022 01:03
-
-
Save pacarvalho/b6c2c79c705f92a58928d0e8bd96e99f to your computer and use it in GitHub Desktop.
Medium - Static Website with Middleman - config.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate and configure extensions | |
# https://middlemanapp.com/advanced/configuration/#configuring-extensions | |
activate :autoprefixer do |prefix| | |
prefix.browsers = "last 2 versions" | |
end | |
# Live reload during development | |
activate :livereload | |
# No .html in the end of website paths | |
activate :directory_indexes | |
# Layouts | |
# https://middlemanapp.com/basics/layouts/ | |
# Per-page layout changes | |
page '/*.xml', layout: false | |
page '/*.json', layout: false | |
page '/*.txt', layout: false | |
configure :build do | |
MiniRacer::Platform.set_flags!(:single_threaded) | |
activate :asset_hash | |
activate :minify_css | |
activate :minify_javascript | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment