From a4e1b93051133f1df7ff12bd043fb35bfc210067 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 27 Mar 2019 11:49:01 +0100 Subject: [PATCH] add es6 support for staging envs --- README.md | 3 +-- config/environments/staging.rb | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba57f8fc5..17669017e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # FabManager -FabManager is the FabLab management solution. It is web-based, open-source and totally free. +FabManager is the Fab Lab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects. [![Coverage Status](https://coveralls.io/repos/github/sleede/fab-manager/badge.svg)](https://coveralls.io/github/sleede/fab-manager) [![Docker pulls](https://img.shields.io/docker/pulls/sleede/fab-manager.svg)](https://hub.docker.com/r/sleede/fab-manager/) @@ -43,7 +43,6 @@ FabManager is a Ruby on Rails / AngularJS web application that runs on the follo - Ubuntu LTS 14.04+ / Debian 8+ - Ruby 2.3 -- Git 1.9.1+ - Redis 2.8.4+ - Sidekiq 3.3.4+ - Elasticsearch 5.6 diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 43961df1a..28f695ebc 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -24,8 +24,8 @@ Rails.application.configure do # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier - # if you want disable variable name mangling - config.assets.js_compressor = Uglifier.new(mangle: false) + # if you want disable variable name mangling and enable ES6 support + config.assets.js_compressor = Uglifier.new(mangle: false, harmony: true) # config.assets.css_compressor = :sass