Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-cli3.0建的项目跑不起来 #81

Open
lingzi198853 opened this issue Jul 1, 2019 · 1 comment
Open

vue-cli3.0建的项目跑不起来 #81

lingzi198853 opened this issue Jul 1, 2019 · 1 comment

Comments

@lingzi198853
Copy link

vue-cli3.0建的项目跑不起来,一直启动不了啊

@HuZai
Copy link

HuZai commented Aug 6, 2019

vue.config.js 配置如下
const SkeletonWebpackPlugin = require('vue-skeleton-webpack-plugin')
module.exports = {
  chainWebpack: config => {
config.plugin('SkeletonWebpackPlugin').use(SkeletonWebpackPlugin,[
      {
        webpackConfig: {
          entry:{
            app: path.resolve(__dirname,'./src/entry-skeleton.js')
          }
        },
        quiet: true,
        minimize: true,
        router: {
          mode: 'history',
          routes: [
            {
              path: '/',
              skeletonId: 'skeletonIndex'
            },
            {
              path: '/about',
              skeletonId: 'skeletonAbout'
            },
          ]
        }
      }
    ])
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants