Browse Source

Create public folder if it doesn't exist already

master
Dylan Baker 2 years ago
parent
commit
b18667d5ca
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Rakefile

+ 5
- 0
Rakefile View File

@@ -17,6 +17,11 @@ end
17 17
 task 'build' do
18 18
   require 'sassc'
19 19
 
20
+  unless Dir.exist?('./web/public')
21
+    puts 'Creating web/public/'
22
+    Dir.mkdir('./web/public')
23
+  end
24
+
20 25
   scss = File.read('./web/assets/style.scss')
21 26
   css = SassC::Engine.new(scss, style: :compressed).render
22 27
   puts 'Writing web/public/style.css'

Loading…
Cancel
Save