Skip to content

Commit 24919d3

Browse files
author
Leo Dube
committedDec 1, 2020
added netlify configuration file for spa redirects
1 parent 11170e9 commit 24919d3

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed
 

‎netlify.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[[redirects]]
2+
from = "/*"
3+
to = "/index.html"
4+
status = 200

‎public/_redirects

-1
This file was deleted.

‎webpack.config.js

-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const path = require("path");
22
const webpack = require("webpack");
33
const HtmlWebpackPlugin = require("html-webpack-plugin");
44
const ImageMinimizerPlugin = require('image-minimizer-webpack-plugin');
5-
const CopyPlugin = require("copy-webpack-plugin");
65
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
76

87
module.exports = {
@@ -72,10 +71,5 @@ module.exports = {
7271
template:"public/index.html",
7372
favicon: "public/favicon.png",
7473
}),
75-
new CopyPlugin({
76-
patterns: [
77-
{ from: "public/_redirects", to: "" }
78-
]
79-
})
8074
]
8175
};

0 commit comments

Comments
 (0)
Please sign in to comment.