From 36769c35fc8b6ae3c046db8c7b22e3b2003eda5f Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 11 Jul 2014 15:04:00 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20need=20the=20absolute=20path,?= =?UTF-8?q?=20just=20`variables`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `static` is already on the path --- src/theme-manager.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/theme-manager.coffee b/src/theme-manager.coffee index 181fdb02a..a2ae01763 100644 --- a/src/theme-manager.coffee +++ b/src/theme-manager.coffee @@ -181,8 +181,8 @@ class ThemeManager try if importFallbackVariables baseVarImports = """ - @import "#{path.join(@resourcePath, 'static', 'variables', 'ui-variables')}"; - @import "#{path.join(@resourcePath, 'static', 'variables', 'syntax-variables')}"; + @import "variables/ui-variables"; + @import "variables/syntax-variables"; """ less = fs.readFileSync(lessStylesheetPath, 'utf8') @lessCache.cssForFile(lessStylesheetPath, [baseVarImports, less].join('\n')) @@ -190,7 +190,7 @@ class ThemeManager @lessCache.read(lessStylesheetPath) catch e console.error """ - Error compiling less stylesheet: #{importFallbackVariables} #{lessStylesheetPath} + Error compiling less stylesheet: #{lessStylesheetPath} Line number: #{e.line} #{e.message} """