Skip to content

Instantly share code, notes, and snippets.

@pacarvalho
Created July 18, 2022 01:03
Show Gist options
  • Save pacarvalho/b6c2c79c705f92a58928d0e8bd96e99f to your computer and use it in GitHub Desktop.
Save pacarvalho/b6c2c79c705f92a58928d0e8bd96e99f to your computer and use it in GitHub Desktop.
Medium - Static Website with Middleman - config.rb
# 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