Sha256: 8b11c138ee0a40971ecdd1b2a256df5bb596a3c69bc0c58fbc7b233ef8000153
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true add_npm_package "open-props" variables_import = <<~CSS @import "variables.css"; CSS if File.exist?("frontend/styles/index.css") prepend_to_file "frontend/styles/index.css", variables_import elsif File.exist?("frontend/styles/index.scss") prepend_to_file "frontend/styles/index.scss", variables_import else say "\nPlease add the following lines to your CSS index file:" say variables_import end template in_templates_dir("variables.css.erb"), "frontend/styles/variables.css" say_status :open_props, "Open Props is now configured."
Version data entries
3 entries across 3 versions & 1 rubygems