Comments (7)
config.default.js
exports.static = {
prefix: '/public/',
dir: path.join(app.baseDir, 'public')
}
应该是少这个配置吧
from egg-vue-webpack-boilerplate.
@DragWeb 不少这个,
如果少这个,生产环境也应该访问不了才对
from egg-vue-webpack-boilerplate.
确实有这个现象,http://localhost:7001/public/html/home/index.html 这个静态页面也访问不了,还有.ttf和.woff等字体文件 /public/client/font/.ttf /public/client/font/.woff @hubcarl
from egg-vue-webpack-boilerplate.
端口是9000 访问静态console信息:net::ERR_CONNECTION_REFUSED
from egg-vue-webpack-boilerplate.
@ZQun 你是用最新master代码嘛?如果是最新的,是可以直接访问的。如果egg-webpack 是旧版本,本地开发模式只能通过 http://localhost:9000/public/html/home/index.html
from egg-vue-webpack-boilerplate.
建议看一下egg+webpakc构建流程:http://hubcarl.github.io/easywebpack/vue/dev
from egg-vue-webpack-boilerplate.
@hubcarl 谢谢,刚刚用了最新master没有问题!我之前用的旧版
from egg-vue-webpack-boilerplate.
Related Issues (20)
- Could not find a declaration file for module 'lodash-id'. HOT 3
- 集成到自己的项目中 manifest.json 里面 vendor.js 路径没有 public HOT 1
- 最新版本的 egg-vue-webpack-boilerplate 热更新问题 HOT 2
- 大佬 为什么我使用svg-sprite-loader 不报错 svg也加载不出来 但其他项目中 同样的配置是可以的 HOT 1
- 报错 yarn 和npm 安装会报错, cnpm 正常 HOT 1
- 服务端渲染, 传递参数无法正常获取, sass样式无法正确展示 HOT 1
- Node.js14版本,报错!
- wsl2下热更新请求报跨域错误
- csr模式无法渲染在页面上 HOT 1
- egg-vue-webpack-boilerplate 工程里的/login页面渲染不出来
- windows 下 dev 模式 vue在浏览器端没有激活 HOT 4
- 服务端渲染返回后,客户端又进行了渲染
- 开启egg-security的CSP如何配置内联script/style的nonce HOT 1
- i18n
- i18n怎么集成到系统中,文档上的方法不好用?
- 运行时,Ignore Plugin 报错 HOT 1
- 启动时报错:nodejs.ValidationError: Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema HOT 1
- 项目构建报错:PostCSS plugin postcss-discard-comments requires PostCSS 8. HOT 1
- master分支无法点击
- 如何解决接口跨域请求的问题呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egg-vue-webpack-boilerplate.