Skip to content

Commit

Permalink
enable serving files outside the root path
Browse files Browse the repository at this point in the history
Closes #103
  • Loading branch information
jakemac53 authored and kevmoo committed May 9, 2016
1 parent acec47d commit ac22839
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0+2
- Enable serving files outside the server root by default (enables serving
files from other packages).

## 0.3.0+1
- Fix an AssetGraph bug where generated nodes might be created as non-generated
nodes if they are attempted to be read from previous build steps.
Expand Down
5 changes: 3 additions & 2 deletions lib/src/generate/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ class BuildOptions {
address ??= 'localhost';
directory ??= '.';
port ??= 8000;
requestHandler ??= createStaticHandler(directory,
defaultDocument: 'index.html', listDirectories: true);
requestHandler ??= createStaticHandler(
directory, defaultDocument: 'index.html', listDirectories: true,
serveFilesOutsidePath: true);
debounceDelay ??= const Duration(milliseconds: 250);
packageGraph ??= new PackageGraph.forThisPackage();
var cache = new AssetCache();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: build
version: 0.3.0+1
version: 0.3.0+2
description: A build system for Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/build
Expand Down

0 comments on commit ac22839

Please sign in to comment.