diff --git a/src/Compiler/ScriptCompiler.php b/src/Compiler/ScriptCompiler.php index 99147c4..599b3a7 100644 --- a/src/Compiler/ScriptCompiler.php +++ b/src/Compiler/ScriptCompiler.php @@ -42,6 +42,17 @@ public function __construct(MinifierEngine $engine, Filesystem $files, $cachePat $this->engine = $engine; } + /** + * Get the path to the compiled version of a script. + * + * @param string $path + * @return string + */ + public function getCompiledPath($path) + { + return $this->cachePath . '/' . sha1($path) . '.js'; + } + /** * Add transpiler. *