Skip to content
Yongku cho edited this page Aug 25, 2020 · 6 revisions

정리

메모

  • css 분리
// nuxt.config.js
  build: {
    ...
    extractCSS: true,
    optimization: {
      splitChunks: {
        chunks: 'all',
        automaticNameDelimiter: '.',
        name: true,
        cacheGroups: {}
      }
    },
    splitChunks: {
      layouts: true
    }
  },
const SCROLL_TO_OPTION: ScrollToOptions = {
  top: 0,
  behavior: 'smooth'
}
window.scrollTo(SCROLL_TO_OPTION)
  • Vuex 다른 모듈 Action 사용
dispatch('auth/action', {...}, { root: true })
  • @nuxt/typescript-build
    • 경우에 따라 빌드 시 lint 체크 안되도록 처리
  buildModules: [
    [
      '@nuxt/typescript-build',
      {
        typeCheck: {
          eslint: IS_LOCAL
        },
        ignoreNotFoundWarnings: true
      }
    ]
  ],
  • error.vue, default.vue CSS 순서 확인
Clone this wiki locally