1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

feat(sidebar): implement new design [EE-3447] (#7118)

This commit is contained in:
Chaim Lev-Ari 2022-06-28 10:42:42 +03:00 committed by GitHub
parent e5e57978af
commit ed8f9b5931
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 1928 additions and 857 deletions

View file

@ -14,6 +14,7 @@ const CopyPlugin = require('copy-webpack-plugin');
const pkg = require('../package.json');
const projectRoot = path.resolve(__dirname, '..');
/** @type {import('webpack').Configuration} */
module.exports = {
entry: {
main: './app',
@ -63,6 +64,21 @@ module.exports = {
test: /.xml$/,
type: 'asset/resource',
},
{
test: /\.(gif|png|jpe?g)$/i,
type: 'asset/resource',
},
{
test: /\.svg$/i,
type: 'asset',
resourceQuery: { not: [/c/] }, // exclude react component if *.svg?url
},
{
test: /\.svg$/i,
issuer: /\.tsx?$/,
resourceQuery: /c/, // *.svg?c
use: [{ loader: '@svgr/webpack', options: { icon: true } }],
},
{
test: /\.css$/,
use: [