Skip to content

Commit

Permalink
copy assets
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-laplante committed May 11, 2024
1 parent ece2e24 commit fbd2a27
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
93 changes: 93 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 @@ -24,6 +24,7 @@
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.19",
"babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.11.0",
"eslint": "^8.57.0",
"eslint-plugin-lodash": "^7.4.0",
Expand Down
6 changes: 6 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import webpack from "webpack";
import WebpackAssetsManifest from "webpack-assets-manifest";
import path from "path";
import HtmlWebpackPlugin from 'html-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';

const OUTPUT_PATH = './dist/';

Expand Down Expand Up @@ -57,6 +58,11 @@ module.exports = (env: any, argv: any) => {
new HtmlWebpackPlugin({
filename: path.resolve(OUTPUT_PATH, "index.html"),
template: "src/index.html.ejs"
}),
new CopyWebpackPlugin({
patterns: [
{ from: path.resolve(__dirname, 'assets/'), to: 'assets' }
]
})
],

Expand Down

0 comments on commit fbd2a27

Please sign in to comment.