Skip to content

Commit 293b06b

Browse files
authored
Merge pull request #16 from CarToi/feat/#11/map
[design] #15 아이콘 렌더링 방식 변경 및 svgr 설치
2 parents 563a513 + d256f2d commit 293b06b

26 files changed

Lines changed: 125 additions & 59 deletions

next.config.mjs

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
experimental: {
4+
turbo: {
5+
rules: {
6+
"*.svg": {
7+
loaders: ["@svgr/webpack"],
8+
as: "*.js",
9+
},
10+
},
11+
},
12+
},
13+
14+
webpack: (config) => {
15+
const fileLoaderRule = config.module.rules.find((rule) =>
16+
rule.test?.test?.(".svg")
17+
);
18+
19+
config.module.rules.push(
20+
{
21+
...fileLoaderRule,
22+
test: /\.svg$/i,
23+
resourceQuery: /url/,
24+
},
25+
{
26+
test: /\.svg$/i,
27+
issuer: fileLoaderRule.issuer,
28+
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] },
29+
use: [
30+
{
31+
loader: "@svgr/webpack",
32+
options: {
33+
typescript: true,
34+
ext: "tsx",
35+
},
36+
},
37+
],
38+
}
39+
);
40+
fileLoaderRule.exclude = /\.svg$/i;
41+
return config;
42+
},
43+
44+
images: {
45+
domains: [
46+
"encrypted-tbn0.gstatic.com",
47+
"www.gunsan.go.kr",
48+
"www.ktriptips.com",
49+
"www.saemangeum.go.kr",
50+
"www.sdco.or.kr",
51+
],
52+
},
53+
};
54+
55+
export default nextConfig;

next.config.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/icons/emoji_bad.svg

Lines changed: 8 additions & 0 deletions
Loading

public/icons/emoji_excellent.svg

Lines changed: 8 additions & 0 deletions
Loading

public/icons/emoji_good.svg

Lines changed: 8 additions & 0 deletions
Loading

public/icons/emoji_neutral.svg

Lines changed: 7 additions & 0 deletions
Loading

public/icons/emoji_poor.svg

Lines changed: 8 additions & 0 deletions
Loading

public/icons/marker_recommendation.svg

Lines changed: 0 additions & 1 deletion
Loading

0 commit comments

Comments
 (0)