Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최원석
/
2021-1-database-project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
최원석3 [goesnow]
2021-03-08 16:15:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
00303fb8fb0120bad4010be9b225b2129dd58f88
00303fb8
1 parent
26f3c219
add css, image loader
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
10 deletions
app/README.MD
app/package.json
app/src/image-png.d.ts
app/src/index.ts
app/tsconfig.json
app/webpack.config.js
app/README.MD
View file @
00303fb
...
...
@@ -9,14 +9,10 @@ npx gts init
# 개발
### 프
로젝트 dev 모드
### 프
론트 서버 띄우기
```
shell
tsc -w
npm run build
npm run start
```
### 프론트 서버 띄우기
```
shell
npm install -g http-server
cd
./app
http-server ./
```
\ No newline at end of file
`npm run start`
만 진행할 시 수정사항이 적용되지 않음
\ No newline at end of file
...
...
app/package.json
View file @
00303fb
...
...
@@ -24,7 +24,9 @@
"devDependencies"
:
{
"@types/node"
:
"^14.11.2"
,
"css-loader"
:
"^5.1.1"
,
"file-loader"
:
"^6.2.0"
,
"gts"
:
"^3.1.0"
,
"style-loader"
:
"^2.0.0"
,
"ts-loader"
:
"^8.0.17"
,
"typescript"
:
"^4.0.3"
,
"webpack"
:
"^5.24.3"
,
...
...
app/src/image-png.d.ts
0 → 100644
View file @
00303fb
declare
module
'*.png'
;
app/src/index.ts
View file @
00303fb
import
{
Bye
}
from
'./Bye'
;
import
'./assets/style/App.css'
;
import
v4
from
'./assets/image/v4Logo.png'
;
const
hi
=
'hchoi won'
;
const
hi1
=
()
=>
{
console
.
log
(
hi
);
Bye
();
const
tag
=
window
.
document
.
querySelector
(
'#App'
);
if
(
tag
)
{
tag
.
innerHTML
=
`<img src=
${
v4
}
alt="image" />`
;
}
};
hi1
();
\ No newline at end of file
...
...
app/tsconfig.json
View file @
00303fb
{
"extends"
:
"./node_modules/gts/tsconfig-google.json"
,
"compilerOptions"
:
{
"lib"
:
[
"es5"
,
"es6"
,
"dom"
],
"rootDir"
:
"."
,
"outDir"
:
"build"
,
"target"
:
"es6"
,
...
...
@@ -11,5 +12,5 @@
},
"include"
:
[
"src/**/*.ts"
]
]
,
}
...
...
app/webpack.config.js
View file @
00303fb
...
...
@@ -15,7 +15,14 @@ module.exports = {
},
{
test
:
/
\.
css$/
,
use
:
[
'css-loader'
]
use
:
[
'style-loader'
,
'css-loader'
],
},
{
test
:
/
\.(
png|jpe
?
g|gif|jp2|webp
)
$/
,
loader
:
'file-loader'
,
options
:
{
name
:
'images/[name].[ext]'
},
}
]
},
...
...
Please
register
or
login
to post a comment