Skip to content

Commit

Permalink
copy example image to public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Mavrin committed Feb 1, 2024
1 parent 1845930 commit 545b26e
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/apps/remark42/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
"clean-webpack-plugin": "^4.0.0",
"codecov": "^3.8.3",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.0.0",
Expand Down
9 changes: 9 additions & 0 deletions frontend/apps/remark42/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const RefreshPlugin = require('@prefresh/webpack');
Expand Down Expand Up @@ -294,6 +295,14 @@ module.exports = (_, { mode, analyze }) => {
},
plugins: [
...plugins,
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, 'templates/400x400.jpeg'),
to: PUBLIC_FOLDER_PATH,
},
],
}),
new ForkTsCheckerWebpackPlugin(),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'templates/iframe.ejs'),
Expand Down
81 changes: 81 additions & 0 deletions frontend/pnpm-lock.yaml

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

0 comments on commit 545b26e

Please sign in to comment.