[go: nahoru, domu]

Skip to content

Commit

Permalink
fix build step
Browse files Browse the repository at this point in the history
  • Loading branch information
brtvcl committed Nov 15, 2022
1 parent 60ae2ad commit 8619218
Show file tree
Hide file tree
Showing 4 changed files with 249 additions and 1 deletion.
240 changes: 240 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@babel/preset-react": "^7.18.6",
"autoprefixer": "^10.4.12",
"babel-loader": "^8.2.5",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.0",
"html-webpack-plugin": "^5.5.0",
Expand Down
1 change: 1 addition & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/img/* /img/:splat 200
/* /index.html 200

8 changes: 7 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");

module.exports = {
entry: "./src/main.js",
Expand Down Expand Up @@ -42,7 +43,12 @@ module.exports = {
}),
new MiniCssExtractPlugin({
filename: "style.[contenthash].css",
})
}),
new CopyPlugin({
patterns: [
{ from: "./public/_redirects", to: "./", },
],
}),
],
devServer: {
hot: false,
Expand Down

0 comments on commit 8619218

Please sign in to comment.