Skip to content

Commit ac22839

Browse files
jakemac53kevmoo
authored andcommitted
enable serving files outside the root path
Closes #103
1 parent acec47d commit ac22839

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.3.0+2
4+
- Enable serving files outside the server root by default (enables serving
5+
files from other packages).
6+
37
## 0.3.0+1
48
- Fix an AssetGraph bug where generated nodes might be created as non-generated
59
nodes if they are attempted to be read from previous build steps.

lib/src/generate/options.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ class BuildOptions {
7979
address ??= 'localhost';
8080
directory ??= '.';
8181
port ??= 8000;
82-
requestHandler ??= createStaticHandler(directory,
83-
defaultDocument: 'index.html', listDirectories: true);
82+
requestHandler ??= createStaticHandler(
83+
directory, defaultDocument: 'index.html', listDirectories: true,
84+
serveFilesOutsidePath: true);
8485
debounceDelay ??= const Duration(milliseconds: 250);
8586
packageGraph ??= new PackageGraph.forThisPackage();
8687
var cache = new AssetCache();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: build
2-
version: 0.3.0+1
2+
version: 0.3.0+2
33
description: A build system for Dart.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/dart-lang/build

0 commit comments

Comments
 (0)