mirror of
https://github.com/neocities/neocities.git
synced 2025-07-19 17:16:05 +02:00
sass now auto-compiles, fix relative_path for site files
This commit is contained in:
parent
fbf78f04d6
commit
9aca6cd0a0
10 changed files with 21 additions and 3153 deletions
|
@ -100,3 +100,16 @@ Mail.defaults do
|
|||
end
|
||||
|
||||
Sinatra::Application.set :erb, escape_html: true
|
||||
|
||||
require 'sass/plugin/rack'
|
||||
Sinatra::Application.use Sass::Plugin::Rack
|
||||
|
||||
Sass::Plugin.options[:template_location] = './public/assets/css'
|
||||
Sass::Plugin.options[:css_location] = './public/css'
|
||||
Sass::Plugin.options[:style] = :nested
|
||||
|
||||
if ENV['RACK_ENV'] == 'production'
|
||||
Sass::Plugin.options[:style] = :compressed
|
||||
Sass::Plugin.options[:never_update] = true
|
||||
Sass::Plugin.options[:full_exception] = false
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue