Skip to content

Commit

Permalink
chore: plugin webpack updated for assets images
Browse files Browse the repository at this point in the history
  • Loading branch information
etokiryau committed Jan 13, 2025
1 parent d4cb012 commit 9f5ea4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions superset-frontend/webpack.config.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const CopyPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
Expand Down Expand Up @@ -123,6 +124,10 @@ const plugins = [
'process.env.WEBPACK_MODE': JSON.stringify(mode),
}),

new CopyPlugin({
patterns: ['package.json', { from: 'src/assets/images', to: 'images' }],
}),

new HtmlWebpackPlugin({
title: 'Superset dashboard plugin',
minify: false,
Expand Down

0 comments on commit 9f5ea4e

Please sign in to comment.