Skip to content

Commit 90e8db1

Browse files
committed
added redirect
1 parent 0363954 commit 90e8db1

File tree

5 files changed

+49
-3
lines changed

5 files changed

+49
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"babel-preset-env": "^1.6.1",
7676
"babel-preset-flow": "^6.23.0",
7777
"babel-preset-react": "^6.24.1",
78+
"copy-webpack-plugin": "^5.0.2",
7879
"enzyme": "^3.3.0",
7980
"enzyme-adapter-react-16": "^1.1.1",
8081
"flow-bin": "^0.69.0",

website/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@babel/preset-env": "^7.4.2",
2323
"@babel/preset-react": "^7.0.0",
2424
"babel-loader": "^8.0.5",
25+
"copy-webpack-plugin": "^5.0.2",
2526
"html-webpack-plugin": "^3.2.0",
2627
"null-loader": "^0.1.1",
2728
"style-loader": "^0.23.1",

website/webpack.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const path = require('path');
22
const HtmlWebpackPlugin = require('html-webpack-plugin');
3+
const CopyPlugin = require('copy-webpack-plugin');
34

45
module.exports = {
56
mode: 'development',
@@ -43,7 +44,12 @@ module.exports = {
4344
tls: 'empty',
4445
child_process: 'empty'
4546
},
46-
plugins: [new HtmlWebpackPlugin()],
47+
plugins: [
48+
new HtmlWebpackPlugin({
49+
title: 'Extract react types'
50+
}),
51+
new CopyPlugin([{ from: '_redirects', to: '_redirects', toType: 'file', }])
52+
],
4753
resolveLoader: {
4854
modules: ['node_modules', path.resolve(__dirname, 'loaders')]
4955
}

yarn.lock

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,7 +2356,7 @@ bytewise@^1.1.0:
23562356
bytewise-core "^1.2.2"
23572357
typewise "^1.0.3"
23582358

2359-
cacache@^11.0.2:
2359+
cacache@^11.0.2, cacache@^11.3.1:
23602360
version "11.3.2"
23612361
resolved "https://registry.npmjs.org/cacache/-/cacache-11.3.2.tgz#2d81e308e3d258ca38125b676b98b2ac9ce69bfa"
23622362
dependencies:
@@ -2814,6 +2814,22 @@ copy-descriptor@^0.1.0:
28142814
version "0.1.1"
28152815
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
28162816

2817+
copy-webpack-plugin@^5.0.2:
2818+
version "5.0.2"
2819+
resolved "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-5.0.2.tgz#56186dfddbf9aa1b29c97fa4c796c1be98870da4"
2820+
dependencies:
2821+
cacache "^11.3.1"
2822+
find-cache-dir "^2.0.0"
2823+
glob-parent "^3.1.0"
2824+
globby "^7.1.1"
2825+
is-glob "^4.0.0"
2826+
loader-utils "^1.1.0"
2827+
minimatch "^3.0.4"
2828+
normalize-path "^3.0.0"
2829+
p-limit "^2.1.0"
2830+
serialize-javascript "^1.4.0"
2831+
webpack-log "^2.0.0"
2832+
28172833
core-js-compat@^3.0.0:
28182834
version "3.0.0"
28192835
resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.0.0.tgz#cd9810b8000742535a4a43773866185e310bd4f7"
@@ -3201,6 +3217,12 @@ diffie-hellman@^5.0.0:
32013217
miller-rabin "^4.0.0"
32023218
randombytes "^2.0.0"
32033219

3220+
dir-glob@^2.0.0:
3221+
version "2.2.2"
3222+
resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-2.2.2.tgz#fa09f0694153c8918b18ba0deafae94769fc50c4"
3223+
dependencies:
3224+
path-type "^3.0.0"
3225+
32043226
32053227
version "1.0.0"
32063228
resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a"
@@ -4290,6 +4312,17 @@ globby@^6.1.0:
42904312
pify "^2.0.0"
42914313
pinkie-promise "^2.0.0"
42924314

4315+
globby@^7.1.1:
4316+
version "7.1.1"
4317+
resolved "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680"
4318+
dependencies:
4319+
array-union "^1.0.1"
4320+
dir-glob "^2.0.0"
4321+
glob "^7.1.2"
4322+
ignore "^3.3.5"
4323+
pify "^3.0.0"
4324+
slash "^1.0.0"
4325+
42934326
good-listener@^1.2.2:
42944327
version "1.2.2"
42954328
resolved "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz#d53b30cdf9313dffb7dc9a0d477096aa6d145c50"
@@ -4622,6 +4655,10 @@ ignore-walk@^3.0.1:
46224655
dependencies:
46234656
minimatch "^3.0.4"
46244657

4658+
ignore@^3.3.5:
4659+
version "3.3.10"
4660+
resolved "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043"
4661+
46254662
ignore@^4.0.6:
46264663
version "4.0.6"
46274664
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
@@ -6600,7 +6637,7 @@ p-limit@^1.1.0:
66006637
dependencies:
66016638
p-try "^1.0.0"
66026639

6603-
p-limit@^2.0.0:
6640+
p-limit@^2.0.0, p-limit@^2.1.0:
66046641
version "2.2.0"
66056642
resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2"
66066643
dependencies:

0 commit comments

Comments
 (0)