Skip to content

Commit def0715

Browse files
committed
Update build for gh-pages
1 parent 83e1711 commit def0715

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "http://alex3165.github.io/react-mapbox-gl",
77
"scripts": {
88
"start": "cross-env NODE_ENV=dev node dev.server.js",
9-
"build": "cross-env NODE_ENV=prod webpack",
9+
"build": "cross-env NODE_ENV=prod webpack && cp dist/index.html dist/demos.html",
1010
"predeploy": "npm run build",
1111
"deploy": "gh-pages -d dist"
1212
},

example/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var output = {
1313
// Add more files to copy to the dist folder (Eventually an assets folder)
1414
var toCopy = [
1515
{ from: 'index.html' },
16-
{ from: 'style.css' },
16+
{ from: 'style.css' }
1717
];
1818

1919
var plugins = [

0 commit comments

Comments
 (0)