Skip to content

Commit d72f1e1

Browse files
committed
added redirect
1 parent 68bb977 commit d72f1e1

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

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: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2063,6 +2063,22 @@ copy-descriptor@^0.1.0:
20632063
version "0.1.1"
20642064
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
20652065

2066+
copy-webpack-plugin@^5.0.2:
2067+
version "5.0.2"
2068+
resolved "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-5.0.2.tgz#56186dfddbf9aa1b29c97fa4c796c1be98870da4"
2069+
dependencies:
2070+
cacache "^11.3.1"
2071+
find-cache-dir "^2.0.0"
2072+
glob-parent "^3.1.0"
2073+
globby "^7.1.1"
2074+
is-glob "^4.0.0"
2075+
loader-utils "^1.1.0"
2076+
minimatch "^3.0.4"
2077+
normalize-path "^3.0.0"
2078+
p-limit "^2.1.0"
2079+
serialize-javascript "^1.4.0"
2080+
webpack-log "^2.0.0"
2081+
20662082
core-js-compat@^3.0.0:
20672083
version "3.0.1"
20682084
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.0.1.tgz#bff73ba31ca8687431b9c88f78d3362646fb76f0"
@@ -3710,7 +3726,7 @@ ignore-walk@^3.0.1:
37103726

37113727
ignore@^3.3.5:
37123728
version "3.3.10"
3713-
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043"
3729+
resolved "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043"
37143730

37153731
ignore@^4.0.3, ignore@^4.0.6:
37163732
version "4.0.6"

0 commit comments

Comments
 (0)