Mercurial > gemma
view client/vue.config.js @ 1578:ca9bd1ce26e5
Fix backend Dockerfile
ca-certificates is needed to fetch go dependencies via https.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 13 Dec 2018 14:57:39 +0100 |
parents | 18ddb6935aa6 |
children | eb832d81b67a |
line wrap: on
line source
const CopyWebpackPlugin = require("copy-webpack-plugin"); module.exports = { outputDir: "../web", chainWebpack: config => { let vendorImgPath = process.env.VUE_APP_VENDOR_IMG_PATH; if (!vendorImgPath) return; config .plugin("CopyWebpackPlugin") .use(CopyWebpackPlugin, [[{ from: vendorImgPath, to: "img" }]], { copyUnmodified: true }); }, css: { loaderOptions: { // pass options to sass-loader sass: { // @/ is an alias to src/ data: `@import "@/assets/application.scss";` } } }, devServer: { proxy: { "/api": { target: process.env.VUE_BACKEND_API_URL, secure: false }, "/img/*": { target: "http://localhost:5000", secure: false } }, disableHostCheck: true } };