mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Replace sqrt() implementation with lib
Copied the needed functions out of https://github.com/terkel/mathsass MIT license
This commit is contained in:
parent
156c3651b5
commit
7147c0e8af
3 changed files with 172 additions and 24 deletions
|
@ -1,6 +1,12 @@
|
|||
require_dependency 'sass/discourse_sass_importer'
|
||||
require 'pathname'
|
||||
|
||||
module Sass::Script::Functions
|
||||
def _error(message)
|
||||
raise Sass::SyntaxError, mesage
|
||||
end
|
||||
end
|
||||
|
||||
class DiscourseSassCompiler
|
||||
|
||||
def self.compile(scss, target, opts={})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue