diff options
author | Sarah German <sgerman@gitlab.com> | 2022-06-14 11:49:01 +0300 |
---|---|---|
committer | David O'Regan <doregan@gitlab.com> | 2022-06-14 11:49:01 +0300 |
commit | b39b973b71ded9bf770fe758310175f59e2c2f24 (patch) | |
tree | 86f76e1a5be55bb1a929bc8785e8af9a5a4a96bb /commands | |
parent | 0bc327a493284dd46c2d0d289dd14f660778b6e8 (diff) |
Bundle GitLab UI CSS with Rollup
Diffstat (limited to 'commands')
-rw-r--r-- | commands/frontend.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/commands/frontend.rb b/commands/frontend.rb index 551602fb..d8e662fd 100644 --- a/commands/frontend.rb +++ b/commands/frontend.rb @@ -38,12 +38,11 @@ run do |opts, args, cmd| puts 'Failed to create icons.svg!' end - puts 'Copying GitLab UI CSS...' + puts 'Copying GitLab UI CSS sourcemaps...' gl_ui_src = 'node_modules/@gitlab/ui/dist' - gl_ui_dest = 'public/assets/stylesheets/gitlab-ui' - Dir.mkdir gl_ui_dest + gl_ui_dest = 'public/frontend/shared' Dir.children(gl_ui_src).each do |filename| - puts "Copied #{gl_ui_src}/#{filename}" if filename.include?("css") && File.write("#{gl_ui_dest}/#{filename}", File.read("#{root}/#{gl_ui_src}/#{filename}")) + puts "Copied #{gl_ui_src}/#{filename}" if filename.include?("map") && File.write("#{gl_ui_dest}/#{filename}", File.read("#{root}/#{gl_ui_src}/#{filename}")) end end |