Skip to content

Commit 8de1e02

Browse files
author
Kris Hoyt
committed
Update a couple dependencies
1 parent de61558 commit 8de1e02

File tree

4 files changed

+2156
-2414
lines changed

4 files changed

+2156
-2414
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"clean": "rm -rf build",
66
"dev": "cross-env NODE_ENV=development webpack-dev-server --inline --hot --progress",
7-
"start": "serve build -s -c 1",
7+
"start": "serve build -c 1",
88
"prestart": "npm run build",
99
"build": "cross-env NODE_ENV=production webpack --progress",
1010
"prebuild": "npm run clean && mkdirp build",
@@ -70,7 +70,7 @@
7070
"identity-obj-proxy": "^3.0.0",
7171
"jest": "^22.2.1",
7272
"json-loader": "^0.5.4",
73-
"less": "^3.0.0-alpha.3",
73+
"less": "^3.7.1",
7474
"less-loader": "^4.0.3",
7575
"mkdirp": "^0.5.1",
7676
"ncp": "^2.0.0",
@@ -102,7 +102,7 @@
102102
"query-string": "^5.0.1",
103103
"react-codemirror2": "^4.0.0",
104104
"react-router-dom": "^4.2.2",
105-
"serve": "^6.0.0",
105+
"serve": "^9.2.0",
106106
"whatwg-fetch": "^2.0.3"
107107
}
108108
}

serve.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"cleanUrls": false,
3+
"rewrites": [
4+
{ "source": "/", "destination": "/index.html" },
5+
{ "source": "/docs", "destination": "/docs/index.html" }
6+
]
7+
}

webpack.config.babel.js

+3
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ module.exports = [
191191
template: 'index.html',
192192
chunks: ['cmp']
193193
}),
194+
new CopyWebpackPlugin([
195+
{ from: '../serve.json', to: '.' }
196+
]),
194197
]).concat(ENV === 'production' ? uglifyPlugin : []),
195198
},
196199
// Docs config

0 commit comments

Comments
 (0)