GithubHelp home page GithubHelp logo

Comments (7)

DragWeb avatar DragWeb commented on July 23, 2024

config.default.js

  exports.static = {
    prefix: '/public/',
    dir: path.join(app.baseDir, 'public')
  }

应该是少这个配置吧

from egg-vue-webpack-boilerplate.

ChitaGideon avatar ChitaGideon commented on July 23, 2024

@DragWeb 不少这个,
如果少这个,生产环境也应该访问不了才对

from egg-vue-webpack-boilerplate.

ZQun avatar ZQun commented on July 23, 2024

确实有这个现象,http://localhost:7001/public/html/home/index.html 这个静态页面也访问不了,还有.ttf和.woff等字体文件 /public/client/font/.ttf /public/client/font/.woff @hubcarl

from egg-vue-webpack-boilerplate.

ZQun avatar ZQun commented on July 23, 2024

端口是9000 访问静态console信息:net::ERR_CONNECTION_REFUSED

from egg-vue-webpack-boilerplate.

hubcarl avatar hubcarl commented on July 23, 2024

@ZQun 你是用最新master代码嘛?如果是最新的,是可以直接访问的。如果egg-webpack 是旧版本,本地开发模式只能通过 http://localhost:9000/public/html/home/index.html

from egg-vue-webpack-boilerplate.

hubcarl avatar hubcarl commented on July 23, 2024

建议看一下egg+webpakc构建流程:http://hubcarl.github.io/easywebpack/vue/dev

from egg-vue-webpack-boilerplate.

ZQun avatar ZQun commented on July 23, 2024

@hubcarl 谢谢,刚刚用了最新master没有问题!我之前用的旧版

from egg-vue-webpack-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.