Mercurial > gemma
view client/vue.config.js @ 1189:3d50f558870c
REST GET call to /imports now has the ability to be filtered by kinds or states.
Something like &states=queued,running,failed,pending,accepted&kinds=sr
Note: The states are not the current states of the import queue, yet.
The import queue will be adjusted soon.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 16 Nov 2018 12:08:46 +0100 |
parents | 51e42c2e110a |
children | b23622905a3f |
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") ]) } ]); }, css: { loaderOptions: { // pass options to sass-loader sass: { // @/ is an alias to src/ // so this assumes you have a file named `src/variables.scss` data: `@import "@/application/assets/application.scss";` } } }, devServer: { proxy: { "/api": { target: process.env.VUE_BACKEND_API_URL, secure: false }, "/img/*": { target: "http://localhost:5000", secure: false } }, disableHostCheck: true } };