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'
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