From 29c5bc04c4de4f7eec127c0e0ec580f150b77b9a Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 26 Apr 2018 14:30:01 +0200 Subject: [PATCH] Add support for webpack 4. update dependencies. fix compatibility issues. --- config/webpack.config.demo.js | 27 +- config/webpack.config.dev.js | 6 +- config/webpack.config.prod.js | 39 +- package-lock.json | 10317 ++++++++++++++++++++------------ package.json | 74 +- 5 files changed, 6522 insertions(+), 3941 deletions(-) diff --git a/config/webpack.config.demo.js b/config/webpack.config.demo.js index 5039f2d..82a9c38 100644 --- a/config/webpack.config.demo.js +++ b/config/webpack.config.demo.js @@ -5,7 +5,8 @@ const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); -const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); +const UglifyJsPlugin = require('uglifyjs-webpack-plugin') +const InterpolateHtmlPlugin = require('interpolate-html-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const eslintFormatter = require('react-dev-utils/eslintFormatter'); const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin'); @@ -228,26 +229,28 @@ module.exports = { // if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`. // It is absolutely essential that NODE_ENV was set to production here. // Otherwise React will be compiled in the very slow development mode. - new InterpolateHtmlPlugin(env.raw), // Generates an `index.html` file with the