aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-11-11 18:50:56 +0100
committern-peugnet <n.peugnet@free.fr>2019-11-12 00:35:29 +0100
commite4bc65433283e0725a2e7bf07ae0c84f7905af17 (patch)
treeabf9e2c4ff0c601eda5400ef6fea9639fbd3cb18 /webpack.config.js
parentc0cf03fcb5aeaa4011c9b8eef4b9bc505b24485d (diff)
downloadwcms-e4bc65433283e0725a2e7bf07ae0c84f7905af17.tar.gz
wcms-e4bc65433283e0725a2e7bf07ae0c84f7905af17.zip
feat: make Sentry optional
- move sentry to PHP dev requirements. - try...catch Sentry integration in PHP. - update Makefile: - add comments as documentation. - remove recursive call from PREV_ENV_FILE target. - make dist and sentryrelease ENV variable. - add touch target for more efficient rebuilds. - add `dist` build ENV functionnality not to include dev-requirements in the zip release.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 02d9318..8cd7764 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -5,7 +5,11 @@ module.exports = (env) => {
return {
// Environment dependent
mode: env == 'dev' ? 'development' : 'production',
- devtool: env == 'dev' ? 'cheap-eval-source-map' : 'source-map',
+ devtool: env == 'dev' ?
+ 'cheap-eval-source-map' :
+ env == 'dist' ?
+ 'hidden-source-map' :
+ 'source-map',
stats: env == 'dev' ? {} : { warnings: false },
// Constant