Bypass cache when in dev mode

This commit is contained in:
Kevin Sawicki
2014-10-21 12:22:16 -07:00
parent ed4ebefdc1
commit 6ad96d98b8
2 changed files with 5 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ class Package
@stylesheetsDir: 'stylesheets'
@isBundledPackagePath: (packagePath) ->
if atom.packages.devMode
return atom.packages.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
@resourcePathWithTrailingSlash ?= "#{atom.packages.resourcePath}#{path.sep}"
packagePath?.startsWith(@resourcePathWithTrailingSlash)