-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
37 lines (35 loc) · 936 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* eslint-env es6 */
/* eslint-disable no-console */
const path = require("path");
const lintOnSave = true;
// const IS_PRODUCTION = process.env.NODE_ENV === 'production'
module.exports = {
lintOnSave,
pages: {
index: {
entry: "src/app/main.js",
template: "public/index.html",
filename: "index.html",
title: "How Green",
chunks: ["chunk-vendors", "chunk-common", "index"],
},
},
productionSourceMap: true,
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 flask dev server
target: "http://localhost:5000/",
},
},
},
};