Skip to content

Commit

Permalink
Fix og_image copying
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMaximov committed Mar 2, 2020
1 parent dac7a78 commit d321dd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ImageminPlugin = require('imagemin-webpack-plugin').default;
const CopyPlugin = require('copy-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

const path = require('path');
const common = require('./webpack.common');
Expand Down Expand Up @@ -37,8 +37,8 @@ module.exports = merge(common, {
}
}),
new ImageminPlugin({}),
new CopyPlugin([
{ from: 'src/assets/carnation-custom-700.png', to: 'og_image.png' },
new CopyWebpackPlugin([
{ from: 'src/assets/carnation-custom-700.jpg', to: 'og_image.jpg' },
]),
],
module: {
Expand Down

0 comments on commit d321dd8

Please sign in to comment.