diff options
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | webpack.config.js | 12 | 
2 files changed, 10 insertions, 3 deletions
| diff --git a/package.json b/package.json index e688ea5..98fc57d 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@      "@typescript-eslint/parser": "^2.10.0",      "camelcase": "^5.3.1",      "case-sensitive-paths-webpack-plugin": "2.3.0", +    "copy-webpack-plugin": "^6.2.1",      "css-loader": "3.4.2",      "dotenv": "8.2.0",      "dotenv-expand": "5.1.0", diff --git a/webpack.config.js b/webpack.config.js index 0fe45da..60a77ba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,5 +1,6 @@  const path = require("path")  const HtmlWebpackPlugin = require("html-webpack-plugin"); +const CopyPlugin = require('copy-webpack-plugin');  const webpack = require("webpack")  module.exports = (env) => { @@ -71,9 +72,10 @@ module.exports = (env) => {        historyApiFallback: true,      },      plugins: [ -      new HtmlWebpackPlugin({ -        inject: true, -        template: 'public/index.html' +      new CopyPlugin({ +        patterns: [ +          { from: 'public', to: 'build' }, +        ],        }),        new webpack.EnvironmentPlugin({          NODE_ENV: "production", @@ -81,6 +83,10 @@ module.exports = (env) => {          REACT_APP_SENTRY_DSN: "development",          REACT_APP_BRANCH: "development",          REACT_APP_OAUTH2_CLIENT_ID: "0" +      }), +      new HtmlWebpackPlugin({ +        inject: true, +        template: 'public/index.html'        })      ]    } | 
