Skip to content
Snippets Groups Projects
Commit 853f2dab authored by Marshall Quander's avatar Marshall Quander
Browse files

Fix error logging in naf-janus-adapter

parent 6a017d8d
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}, },
"scripts": { "scripts": {
"postinstall": "node ./scripts/postinstall.js", "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", "build": "rimraf ./public && cross-env NODE_ENV=production webpack --mode=production",
"doc": "node ./scripts/doc/build.js", "doc": "node ./scripts/doc/build.js",
"prettier": "prettier --write '*.js' 'src/**/*.js'", "prettier": "prettier --write '*.js' 'src/**/*.js'",
......
...@@ -8,6 +8,7 @@ const webpack = require("webpack"); ...@@ -8,6 +8,7 @@ const webpack = require("webpack");
const HTMLWebpackPlugin = require("html-webpack-plugin"); const HTMLWebpackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin"); const ExtractTextPlugin = require("extract-text-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const _ = require("lodash"); const _ = require("lodash");
const SMOKE_PREFIX = "smoke-"; const SMOKE_PREFIX = "smoke-";
...@@ -195,6 +196,10 @@ const config = { ...@@ -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: [ plugins: [
// Each output page needs a HTMLWebpackPlugin entry // Each output page needs a HTMLWebpackPlugin entry
new HTMLWebpackPlugin({ new HTMLWebpackPlugin({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment