// @remove-on-eject-begin /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ // @remove-on-eject-end var path = require('path'); var autoprefixer = require('autoprefixer'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var url = require('url'); var paths = require('./paths'); var env = require('./env'); // Assert this just to be safe. // Development builds of React are slow and not intended for production. if (env['process.env.NODE_ENV'] !== '"production"') { throw new Error('Production builds must have NODE_ENV=production.'); } // We use "homepage" field to infer "public path" at which the app is served. // Webpack needs to know it to put the right