Closed
Conversation
…es에서 관리되는 babel-loader 경로 override
…즉각적으로 root에서 관리 할 수 있도록 하는 것이 좋다.
…stcss-cli 플러그인 설치 및 실행 결과 정상 동작하지 않음
7 tasks
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
issue
TailwdCSS 생성 및 구성
TextAdventureGame디렉토리 package.json에 설치를 실행했다. 이는 다음과 같다.root디렉토리로 넘어가서 아래와 같은 플러그인들을 설치한다.yarn.lock및.pnp.cjs, 등을 초기화 해도 같은 오류가 발생하게 되면서MODULE_NOT_FOUND와 같은 오류들도 자주 발생했다. 계속해서 pnp의 의존을 하지 않고 node_modules를 찾게되는데yarnrc.yml파일에서nodeLinker로 반복적인 전환을 해주면서 에러가 발생하지 않게 하는 방식은 수고로움이 많다고 판단이 되어서 하위 디렉토리가 아닌 해당 오류가 발생하는 플러그인들을 모두 루트에서 관리할 수 있게 했더니 오류가 발생하지 않았다. 물론 ts와 같은 오류는 이와 반대로 ts를 하위 디렉토리까지 상속받지 못하는 상황이여서 불가피하게 하위 디렉토리에서 ts를 설치하게 되었다.플러그인
필요한 플러그인들을 구성한다.
@import를 사용하여 가져오는 기능을 제공합니다. 이 기능은 CSS 파일들을 모듈화하고 재사용할 때 유용합니다.@import로 하나로 묶어 build가 되면서 다양하게 활용을 하려고 했으나 그렇지 못한 것이 제일 아쉬웠다. 물론 내가 고수한 방식과 방법만이 해결책은 아니다. 찾아보니 tailwindcss.config.js에서스타일 토큰을 생성하고 그것들을 html에 가지고와서 사용할 수 있었다. 이 방법이 가장 안정적이고 많은 tailwindcss를 사용하는 일반적인 방식이다.@import를 사용하지 못한 이유@import는postcss-import플러그인으로 부터 사용할 수 있는데 명화한 오류나 원인이 log나 error가 도출되지 않아 방황하게 되다가 config파일에서 스타일 토큰으로 커스텀하는 방식을 알게되면서@import시도를 우선 중단 하였다. 뿐만 아니라 tailwindcss는 js in css 방식이기에 bootstarp, inlineStyle과 같은 방식을 사용하는 것이 본래에 맞는 의도이고 취지이다. 즉, css를 최대한 줄이는 것이 tailwindcss를 사용하는 목적이라는 것이다. 따라서 스타일 토큰을 적극적으로 활용하는 측면이 좋겠다는 판단을 하였다.webpack과 babel