Corrected naming files .css instead of .pcss
This commit is contained in:
parent
f122f942e3
commit
6361a50230
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user