1 Star 2 Fork 0

zhang35/django-vue-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 598 Bytes
一键复制 编辑 原始数据 按行查看 历史
gtalarico 提交于 7年前 . Updated Vue config notes
// const IS_PRODUCTION = process.env.NODE_ENV === 'production'
module.exports = {
outputDir: 'dist',
assetsDir: 'static',
// baseUrl: IS_PRODUCTION
// ? 'http://cdn123.com'
// : '/',
// For Production, replace set baseUrl to CDN
// And set the CDN origin to `yourdomain.com/static`
// Whitenoise will serve once to CDN which will then cache
// and distribute
devServer: {
proxy: {
'/api*': {
// Forward frontend dev server request for /api to django dev server
target: 'http://localhost:8000/',
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang35/django-vue-template.git
git@gitee.com:zhang35/django-vue-template.git
zhang35
django-vue-template
django-vue-template
master

搜索帮助