Corrected naming files .css instead of .pcss

This commit is contained in:
James Patrick 2020-05-23 02:39:35 -04:00
parent f122f942e3
commit 6361a50230

View File

@ -6,12 +6,12 @@ class ComponentGenerator < Rails::Generators::Base
argument :component_name, required: true, desc: 'Component name, e.g: button' argument :component_name, required: true, desc: 'Component name, e.g: button'
def create_css_file def create_css_file
create_file "#{component_path}/#{component_name}.css" create_file "#{component_path}/#{component_name}.pcss"
end end
def create_js_file def create_js_file
create_file "#{component_path}/#{component_name}.js" do create_file "#{component_path}/#{component_name}.js" do
"import \"./#{component_name}.css\";\n" "import \"./#{component_name}.pcss\";\n"
end end
end end