File tree 2 files changed +2
-49
lines changed
2 files changed +2
-49
lines changed Original file line number Diff line number Diff line change @@ -3,51 +3,6 @@ import type { NextConfig } from "next";
3
3
const nextConfig : NextConfig = {
4
4
output : "export" ,
5
5
trailingSlash : true ,
6
-
7
- webpack ( config ) {
8
- // Grab the existing rule that handles SVG imports
9
- // const fileLoaderRule = config.module.rules.find((rule) =>
10
- // rule.test?.test?.(".svg")
11
- // );
12
-
13
- // config.module.rules.push(
14
- // // Reapply the existing rule, but only for svg imports ending in ?url
15
- // {
16
- // ...fileLoaderRule,
17
- // test: /\.svg$/i,
18
- // resourceQuery: /url/, // *.svg?url
19
- // },
20
- // // Convert all other *.svg imports to React components
21
- // {
22
- // test: /\.svg$/i,
23
- // issuer: fileLoaderRule.issuer,
24
- // resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
25
- // use: ["@svgr/webpack"],
26
- // }
27
- // );
28
-
29
- // // Modify the file loader rule to ignore *.svg, since we have it handled now.
30
- // fileLoaderRule.exclude = /\.svg$/i;
31
-
32
- // return config;
33
-
34
- config . module ?. rules . push ( {
35
- test : / \. s v g $ / ,
36
- issuer : {
37
- and : [ / \. ( j s | t s | j s x | t s x ) $ / ] ,
38
- } ,
39
- use : [
40
- {
41
- loader : "@svgr/webpack" ,
42
- options : {
43
- // здесь вы можете указать настройки для svgr, если необходимо
44
- } ,
45
- } ,
46
- ] ,
47
- } ) ;
48
-
49
- return config ;
50
- } ,
51
6
} ;
52
7
53
8
export default nextConfig ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import styles from "./styles.module.css";
3
3
import { useState } from "react" ;
4
4
import { Navigation } from "@/features/navigation" ;
5
5
import { Hello } from "@/widgets/hello" ;
6
- import { DockPanel } from "@/features/dock" ;
6
+ // import { DockPanel } from "@/features/dock";
7
7
8
8
export const MainPage = ( ) => {
9
9
const [ currentTabValue , setCurrentTabValue ] = useState ( 0 ) ;
@@ -46,9 +46,7 @@ export const MainPage = () => {
46
46
onChange = { ( value ) => handleTabChange ( value ) }
47
47
/>
48
48
< main className = { styles . main } > { components [ currentTabValue ] . render } </ main >
49
- < div className = { styles . dock } >
50
- < DockPanel />
51
- </ div >
49
+ < div className = { styles . dock } > { /* <DockPanel /> */ } </ div >
52
50
</ div >
53
51
) ;
54
52
} ;
You can’t perform that action at this time.
0 commit comments