comparison client/vue.config.js @ 1669:16fb9667ddf8

refac: use dynamic imports for components
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 24 Dec 2018 13:12:11 +0100
parents eb832d81b67a
children 89b38d7e7b6a
comparison
equal deleted inserted replaced
1668:eb832d81b67a 1669:16fb9667ddf8
1 const CopyWebpackPlugin = require("copy-webpack-plugin"); 1 const CopyWebpackPlugin = require("copy-webpack-plugin");
2 2
3 module.exports = { 3 module.exports = {
4 outputDir: "../web", 4 outputDir: "../web",
5 configureWebpack: { 5 configureWebpack: {
6 devtool: 'source-map' 6 devtool: "source-map"
7 }, 7 },
8 chainWebpack: config => { 8 chainWebpack: config => {
9 let vendorImgPath = process.env.VUE_APP_VENDOR_IMG_PATH; 9 let vendorImgPath = process.env.VUE_APP_VENDOR_IMG_PATH;
10 if (!vendorImgPath) return; 10 if (!vendorImgPath) return;
11 config 11 config