jbone icon indicating copy to clipboard operation
jbone copied to clipboard

jbone-cms-admin前端构建时报component: () => import('@/view/single-page/home')

Open miguanxiong opened this issue 7 years ago • 1 comments

这个在ivew-admin中已经解决,在webapp目录添加 Uploading 图片.png…

miguanxiong avatar Jan 31 '19 07:01 miguanxiong

我添加了两个文件修改了一处代码可以尝试 (1) .eslintrc.js

module.exports = {
  root: true,
  'extends': [
    'plugin:vue/essential',
    '@vue/standard'
  ],
  rules: {
    // allow async-await
    'generator-star-spacing': 'off',
    // allow debugger during development
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
    'no-undef': 'off',
    'camelcase': 'off'
  },
  parserOptions: {
    parser: 'babel-eslint'
  }
}

(2) .babelrc

{
  "presets": [
    "@vue/app"
  ]
}

(3)修改了一处代码 webapp\vue.config.js

productionSourceMap: false 下面添加如下代码

css: {
  loaderOptions: { // 向 CSS 相关的 loader 传递选项
    less: {
      javascriptEnabled: true
    }
  }
}

执行 npm install && npm run dev

wimigame avatar Feb 14 '19 07:02 wimigame