From 61ee40aa760381c24f4d0d8606f4c83ec1030b93 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Fri, 12 Feb 2016 13:49:32 +0100 Subject: [PATCH] test 1 --- Gemfile | 2 ++ Gemfile.lock | 3 +++ app/assets/stylesheets/application_split2.css | 3 +++ app/views/layouts/application.html.haml | 1 + 4 files changed, 9 insertions(+) create mode 100644 app/assets/stylesheets/application_split2.css diff --git a/Gemfile b/Gemfile index c2f3f67fd..5f4328ff8 100644 --- a/Gemfile +++ b/Gemfile @@ -74,6 +74,8 @@ gem 'mailjet' gem "smart_listing" +gem 'css_splitter' + group :test do gem 'capybara' gem 'factory_girl' diff --git a/Gemfile.lock b/Gemfile.lock index 808802d6f..73132940c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -93,6 +93,8 @@ GEM columnize (0.9.0) crack (0.4.2) safe_yaml (~> 1.0.0) + css_splitter (0.4.4) + sprockets (>= 2.0.0) database_cleaner (1.4.1) debug_inspector (0.0.2) devise (3.4.1) @@ -452,6 +454,7 @@ DEPENDENCIES carrierwave chartkick coffee-rails (~> 4.1.0) + css_splitter database_cleaner devise draper diff --git a/app/assets/stylesheets/application_split2.css b/app/assets/stylesheets/application_split2.css new file mode 100644 index 000000000..07566dff4 --- /dev/null +++ b/app/assets/stylesheets/application_split2.css @@ -0,0 +1,3 @@ +/* + *= require 'application' +*/ \ No newline at end of file diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 773c6feb9..d1161b83c 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -6,6 +6,7 @@ %meta{'http-equiv' => "X-UA-Compatible", :content => "IE=edge"} = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true + = stylesheet_link_tag 'application_split2', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags %body