Mercurial > gemma
view client/vue.config.js @ 579:642df1164aca
Ensure gauges are identified by appropriate ISRS location code
The Object Reference Code ist checked according to section
I.3.4 Waterway Gauge of the RIS-Index Encoding Guide.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 06 Sep 2018 16:15:38 +0200 |
parents | 99968a7394f7 |
children | 8278b2fb0c33 |
line wrap: on
line source
const CopyWebpackPlugin = require("copy-webpack-plugin"); const PurgecssPlugin = require("purgecss-webpack-plugin"); const glob = require("glob-all"); const path = require("path"); 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 }); config.plugin("PurgecssPlugin").use(PurgecssPlugin, [ { paths: glob.sync([ path.join(__dirname, "./src/index.html"), path.join(__dirname, "./**/*.vue"), path.join(__dirname, "./src/**/*.js") ]) } ]); }, devServer: { proxy: { "/api": { target: process.env.VUE_BACKEND_API_URL, secure: false }, "/img/*": { target: "http://localhost:5000", secure: false } }, disableHostCheck: true } };