diff --git a/package.json b/package.json index 744b8d81544a7a5fafee47af0f431b6753e7c665..e001174a0b257116d4680d9310e991f38db5dabb 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "postinstall": "node ./scripts/postinstall.js", - "start": "cross-env NODE_ENV=development webpack-dev-server", + "start": "cross-env NODE_ENV=development webpack-dev-server --mode=production", "build": "rimraf ./public && cross-env NODE_ENV=production webpack --mode=production", "doc": "node ./scripts/doc/build.js", "prettier": "prettier --write '*.js' 'src/**/*.js'", @@ -43,7 +43,7 @@ "moment": "^2.22.0", "moment-timezone": "^0.5.14", "moving-average": "^1.0.0", - "naf-janus-adapter": "^0.9.0", + "naf-janus-adapter": "^0.10.1", "networked-aframe": "https://github.com/mozillareality/networked-aframe#mr-social-client/master", "nipplejs": "https://github.com/mozillareality/nipplejs#mr-social-client/master", "phoenix": "^1.3.0", diff --git a/webpack.config.js b/webpack.config.js index 5f688d9bfa687d8cc517eb0b98e9d70b74fd71d2..454da02049360c1fc11b4c7bcbe820b6537faf2e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,6 +8,7 @@ const webpack = require("webpack"); const HTMLWebpackPlugin = require("html-webpack-plugin"); const ExtractTextPlugin = require("extract-text-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); +const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); const _ = require("lodash"); const SMOKE_PREFIX = "smoke-"; @@ -195,6 +196,10 @@ const config = { } ] }, + // necessary due to https://github.com/visionmedia/debug/issues/547 + optimization: { + minimizer: [new UglifyJsPlugin({ uglifyOptions: { compress: { collapse_vars: false } } })] + }, plugins: [ // Each output page needs a HTMLWebpackPlugin entry new HTMLWebpackPlugin({ diff --git a/yarn.lock b/yarn.lock index 0dc13a86aa4c0e7a671857cc211ee5934b5b12f0..7ccb0efecb870b257f29f477f226f926a7018b51 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5288,9 +5288,9 @@ min-document@^2.19.0: dependencies: dom-walk "^0.1.0" -minijanus@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/minijanus/-/minijanus-0.6.1.tgz#4d697313d58c4bdf9b762b6252981eaf7134c05f" +minijanus@0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/minijanus/-/minijanus-0.6.2.tgz#c5746bfbbd0573b5c3c47742f16646c6af6f897c" minimalistic-assert@^1.0.0: version "1.0.0" @@ -5475,12 +5475,12 @@ mute-stream@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" -naf-janus-adapter@^0.9.0: - version "0.9.5" - resolved "https://registry.yarnpkg.com/naf-janus-adapter/-/naf-janus-adapter-0.9.5.tgz#81fcbf068daf66820892544de4d8357614e0152d" +naf-janus-adapter@^0.10.1: + version "0.10.1" + resolved "https://registry.yarnpkg.com/naf-janus-adapter/-/naf-janus-adapter-0.10.1.tgz#e3bd4847dba002d38446d4bea4a6908b26229928" dependencies: debug "^3.1.0" - minijanus "0.6.1" + minijanus "0.6.2" nan@^2.3.0, nan@^2.3.2: version "2.9.1"