Skip to content

Commit

Permalink
Re-enable uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Dec 1, 2017
1 parent dc15217 commit 60a42ae
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions packages/react-error-overlay/webpack.config.iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,24 @@ module.exports = {
rules: [
{
test: /\.js$/,
include: path.resolve(__dirname, './src'),
include: [
path.resolve(__dirname, './src'),
path.dirname(
require.resolve('chalk', {
paths: path.dirname(require.resolve('@babel/code-frame')),
})
),
path.dirname(
require.resolve(
'ansi-styles',
path.dirname(
require.resolve('chalk', {
paths: path.dirname(require.resolve('@babel/code-frame')),
})
)
)
),
],
use: 'babel-loader',
},
],
Expand All @@ -34,15 +51,15 @@ module.exports = {
}),
// This code is embedded as a string, so it would never be optimized
// elsewhere.
// new webpack.optimize.UglifyJsPlugin({
// compress: {
// warnings: false,
// comparisons: false,
// },
// output: {
// comments: false,
// ascii_only: false,
// },
// }),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
comparisons: false,
},
output: {
comments: false,
ascii_only: false,
},
}),
],
};

0 comments on commit 60a42ae

Please sign in to comment.