From 6361a5023041130527d72ebf5678a12c57fa859e Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 23 May 2020 02:39:35 -0400 Subject: [PATCH] Corrected naming files .css instead of .pcss --- lib/generators/component_generator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/component_generator.rb b/lib/generators/component_generator.rb index 40239ad..d04bc1f 100644 --- a/lib/generators/component_generator.rb +++ b/lib/generators/component_generator.rb @@ -6,12 +6,12 @@ class ComponentGenerator < Rails::Generators::Base argument :component_name, required: true, desc: 'Component name, e.g: button' def create_css_file - create_file "#{component_path}/#{component_name}.css" + create_file "#{component_path}/#{component_name}.pcss" end def create_js_file create_file "#{component_path}/#{component_name}.js" do - "import \"./#{component_name}.css\";\n" + "import \"./#{component_name}.pcss\";\n" end end