mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
12 lines
No EOL
359 B
Ruby
Executable file
12 lines
No EOL
359 B
Ruby
Executable file
module Middleman::Features::MinifyJavascript
|
|
class << self
|
|
def registered(app)
|
|
# Only do minification on build or prod mode
|
|
return unless [:build, :production].include? app.environment
|
|
|
|
require "middleman/features/minify_javascript/rack"
|
|
app.use Middleman::Rack::MinifyJavascript
|
|
end
|
|
alias :included :registered
|
|
end
|
|
end |