Mercurial > gemma
comparison client/vue.config.js @ 1671:89b38d7e7b6a
included bundleanalyzer buildstep
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 24 Dec 2018 13:58:01 +0100 |
parents | 16fb9667ddf8 |
children | 84d01a536bec |
comparison
equal
deleted
inserted
replaced
1670:c344849538c0 | 1671:89b38d7e7b6a |
---|---|
1 const CopyWebpackPlugin = require("copy-webpack-plugin"); | 1 const CopyWebpackPlugin = require("copy-webpack-plugin"); |
2 | |
3 module.exports = { | 2 module.exports = { |
4 outputDir: "../web", | 3 outputDir: "../web", |
5 configureWebpack: { | 4 configureWebpack: { |
6 devtool: "source-map" | 5 devtool: "source-map" |
7 }, | 6 }, |
11 config | 10 config |
12 .plugin("CopyWebpackPlugin") | 11 .plugin("CopyWebpackPlugin") |
13 .use(CopyWebpackPlugin, [[{ from: vendorImgPath, to: "img" }]], { | 12 .use(CopyWebpackPlugin, [[{ from: vendorImgPath, to: "img" }]], { |
14 copyUnmodified: true | 13 copyUnmodified: true |
15 }); | 14 }); |
15 if (process.env.ANALYZE) { | |
16 var BundleAnalyzerPlugin = require("webpack-bundle-analyzer") | |
17 .BundleAnalyzerPlugin; | |
18 config.plugin("BundleAnalyzerPlugin").use(BundleAnalyzerPlugin, []); | |
19 } | |
16 }, | 20 }, |
17 css: { | 21 css: { |
18 loaderOptions: { | 22 loaderOptions: { |
19 // pass options to sass-loader | 23 // pass options to sass-loader |
20 sass: { | 24 sass: { |