Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const path = require('path')
const {getGraphQLProjectConfig} = require('graphql-config')
const buildContentSecurityPolicy = require('content-security-policy-builder')
const readPkg = require('read-pkg')
const {EnvironmentPlugin} = require('webpack')
const BabelMinifyPlugin = require('babel-minify-webpack-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const CompressionPlugin = require('compression-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const Dotenv = require('dotenv-webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const RelayCompilerWebpackPlugin = require('relay-compiler-webpack-plugin')
const RelayCompilerLanguageTypescript = require('relay-compiler-language-typescript').default
/*::
type Options = {|
allowGitHubSubresources?: boolean,
commonChunkName?: string,
entries?: string[],
graphqlProxyPath?: string,
historyApiFallback?: boolean,
maxAssetSize?: number,
maxEntrypointSize?: number,
outputPath?: string,
srcRoot?: string,
staticRoot?: string,
template?: string,
cspDirectives?: Object
|}