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:
2
Makefile
2
Makefile
@@ -10,7 +10,7 @@ watch:
|
||||
$(WEBPACK) --watch --watch-poll
|
||||
|
||||
serve:
|
||||
$(WEBPACK_DEV_SERVER) --host 0.0.0.0 --content-base ./
|
||||
$(WEBPACK_DEV_SERVER)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; URL='/playground'" />
|
||||
<title>Redirect to playground</title>
|
||||
</head>
|
||||
</html>
|
||||
@@ -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",
|
||||
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user