Skip to content
#

vue-cli

Here are 1,802 public repositories matching this topic...

mystorp
mystorp commented Jul 31, 2019

使用 Mock mock 数据的时候,需要硬编码数据到代码里面

使用 easy-mock 需要外网访问

使用 http-mock-middleware 仅仅需要新增如下 devServer.after 的配置项,就可以很方便的管理假数据,也方便开发者任意的修改假数据,而不需要提交:

const httpMockMiddleware = require("hm-middleware");

module.exports = {
    devServer: {
        after: function(app, server){
            app.use(httpMockMiddleware({
      
robot7th
robot7th commented Jul 24, 2019

image

有没有谁碰到过这问题?侧边栏渲染的时候,render方法内部报错。

ERROR in ./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js&)
Module build failed (

jeffposnick
jeffposnick commented Dec 7, 2017

The code in https://github.com/vuejs-templates/pwa/blob/development/template/build/service-worker-dev.js is meant to be the content of a service worker file, and will only run as expected if inside of the ServiceWorkerGlobalScope.

However, as part of the dev webpack build, it ends up being inlined inside of index.html, meaning that it will run (and do nothing) inside the WindowClient (i

bug
jonathantizard
jonathantizard commented May 8, 2019

Vue JS Dev Tools - installing but does not list elements
When running yarn electron:serve - the VUE JS dev tools are not registering any elements as VUE. However the tools are installed.

To Reproduce

  1. electron:serve
  2. The App launches
  3. Dev Tools installed but not working
    <img width="989" alt="Screenshot 2019-05-08 at 11 13 14" src="https://user-images.githubusercontent.co

Improve this page

Add a description, image, and links to the vue-cli topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the vue-cli topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.