Set playground as dev server content base

For consistency with scratch-vm.
The redirect from index to playground was already unnecessary.
This commit is contained in:
Ray Schamp
2016-09-26 11:58:14 -04:00
parent 856f919970
commit 09dc67fa83
4 changed files with 7 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ watch:
$(WEBPACK) --watch --watch-poll
serve:
$(WEBPACK_DEV_SERVER) --host 0.0.0.0 --content-base ./
$(WEBPACK_DEV_SERVER)
# ------------------------------------------------------------------------------

View File

@@ -1,7 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="refresh" content="0; URL='/playground'" />
<title>Redirect to playground</title>
</head>
</html>

View File

@@ -12,6 +12,7 @@
"main": "./dist.js",
"scripts": {
"prepublish": "make build",
"start": "make serve",
"test": "make test"
},
"dependencies": {},
@@ -24,6 +25,7 @@
"eslint": "2.7.0",
"gh-pages": "0.11.0",
"json-loader": "0.5.4",
"lodash.defaultsdeep": "4.6.0",
"raw-loader": "0.5.1",
"svg-to-image": "1.1.3",
"tap": "5.7.1",

View File

@@ -2,6 +2,10 @@ var path = require('path');
var webpack = require('webpack');
var base = {
devServer: {
contentBase: path.resolve(__dirname, 'playground'),
host: '0.0.0.0'
},
module: {
loaders: [
{