1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +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: [

View file

@ -7,7 +7,7 @@ module.exports = merge(commonConfig, {
module: {
rules: [
{
test: /\.(woff|woff2|eot|ttf|svg|ico|png|jpg|gif)$/,
test: /\.(woff|woff2|eot|ttf|ico)$/,
type: 'asset/resource',
},
],

View file

@ -10,10 +10,6 @@ module.exports = merge(commonConfig, {
test: /\.(woff|woff2|eot|ttf|ico)$/,
type: 'asset/inline',
},
{
test: /\.(gif|png|jpe?g|svg)$/i,
type: 'asset/resource',
},
],
},
});