🔧 Fixed some static paths

This commit is contained in:
2021-10-27 22:04:01 -07:00
parent f5879e25fe
commit e70994c032
9 changed files with 51 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ const webpack = require("webpack");
const outputDirectory = "dist";
const BundleAnalyzerPlugin =
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const CopyPlugin = require("copy-webpack-plugin");
module.exports = (env) => {
return {
@@ -72,7 +73,6 @@ module.exports = (env) => {
port: 3050,
open: true,
hot: true,
contentBase: "./dist",
proxy: {
"/api/**": {
target: "http://localhost:8050",
@@ -86,6 +86,12 @@ module.exports = (env) => {
},
plugins: [
// new BundleAnalyzerPlugin(),
new CopyPlugin({
patterns: [{ from: "./src/client/assets/img/", to: "img/" }],
options: {
concurrency: 100,
},
}),
new HtmlWebpackPlugin({
template: "./public/index.html",
favicon: "./public/favicon.ico",