Skip to content

Commit f3b24c6

Browse files
committed
chore: alias, css-loader, proxy 설정
1 parent 11d43b9 commit f3b24c6

File tree

5 files changed

+382
-15
lines changed

5 files changed

+382
-15
lines changed

config/webpack.common.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ module.exports = {
2525
],
2626

2727
resolve: {
28+
alias: {
29+
"@": path.resolve(__dirname, "../src/"),
30+
},
2831
extensions: [".js", ".jsx", ".ts", ".tsx", ".css", ".json"],
2932
},
3033

config/webpack.dev.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,22 @@ module.exports = merge(common, {
55
mode: "development",
66
devtool: "inline-source-map",
77
devServer: {
8-
open: true,
8+
open: false,
99
hot: true,
1010
compress: true,
1111
port: 3000,
1212
historyApiFallback: true,
1313
liveReload: true,
14+
// proxy: {
15+
// "/api": { target: "http://localhost:9000" },
16+
// },
17+
},
18+
module: {
19+
rules: [
20+
{
21+
test: /\.(sa|sc|c)ss$/i,
22+
use: ["style-loader", "css-loader"], // 필요에 따라 sass-loader 추가
23+
},
24+
],
1425
},
15-
// output: {
16-
// filename: "bundle.js",
17-
// publicPath: "/",
18-
// },
19-
// styled-component 를 사용하므로 주석
20-
// module: {
21-
// rules: [
22-
// {
23-
// test: /\.(sa|sc|c)ss$/i,
24-
// use: ["style-loader", "css-loader", "sass-loader"],
25-
// },
26-
// ],
27-
// },
2826
});

0 commit comments

Comments
 (0)