webstorm调试nuxt.js

nuxt.config.js中加上


  build: {
    extend(config, { isDev, isClient }) {
      if (isDev) {
        config.devtool = 'eval-source-map'  // Something you like
      }
    }
  },

nuxt dev debug模式走起

posted @ 2019-08-04 21:02  reboot777  阅读(783)  评论(0编辑  收藏  举报