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