치악산 복숭아

[error] vue-style-loader is not working 본문

FE/Vue.js

[error] vue-style-loader is not working

Juliie 2020. 10. 14. 14:30

css가 .vue 파일에 적용이 안되는 오류

style 태그에 직접 값을 입력하거나 import를 해도 적용이 안됐다

template 태그 안에서 인라인으로 태그들에 직접 css를 적용하면 되긴 했었지만 유지보수가 힘들다는 단점이 있기 때문에...😭

 

해결 방법: vue-style-loader 대신 style-loader를 이용

 

 

내가 썼던 패키지 버전

"vue-style-loader": "^4.1.2”

"style-loader": "^2.0.0"

 

Comments