PS C:\Users\29525\Desktop\me\my-app>npm run eject> my-app@0.1.0 eject C:\Users\29525\Desktop\me\my-app
> react-scripts eject
NOTE: Create React App 2 supports TypeScript, Sass, CSS Modules and more without ejecting: https://reactjs.org/blog/2018/10/01/create-react-app-v2.html
? Are you sure you want to eject? This action is permanent. Yes
Ejecting...
Copying files into C:\Users\29525\Desktop\me\my-app
Adding \config\env.js to the project
Adding \config\paths.js to the project
Adding \config\webpack.config.js to the project
Adding \config\webpackDevServer.config.js to the project
Adding \config\jest\cssTransform.js to the project
Adding \config\jest\fileTransform.js to the project
Adding \scripts\build.js to the project
Adding \scripts\start.js to the project
Adding \scripts\test.js to the project
Updating the dependencies
Removing react-scripts from dependencies
Adding @babel/core to dependencies
Adding @svgr/webpack to dependencies
Adding babel-core to dependencies
Adding babel-eslint to dependencies
Adding babel-jest to dependencies
Adding babel-loader to dependencies
Adding babel-plugin-named-asset-import to dependencies
Adding babel-preset-react-app to dependencies
Adding bfj to dependencies
Adding case-sensitive-paths-webpack-plugin to dependencies
Adding css-loader to dependencies
Adding dotenv to dependencies
Adding dotenv-expand to dependencies
Adding eslint to dependencies
Adding eslint-config-react-app to dependencies
Adding eslint-loader to dependencies
Adding eslint-plugin-flowtype to dependencies
Adding eslint-plugin-import to dependencies
Adding eslint-plugin-jsx-a11y to dependencies
Adding eslint-plugin-react to dependencies
Adding file-loader to dependencies
Adding fs-extra to dependencies
Adding html-webpack-plugin to dependencies
Adding identity-obj-proxy to dependencies
Adding jest to dependencies
Adding jest-pnp-resolver to dependencies
Adding jest-resolve to dependencies
Adding jest-watch-typeahead to dependencies
Adding mini-css-extract-plugin to dependencies
Adding optimize-css-assets-webpack-plugin to dependencies
Adding pnp-webpack-plugin to dependencies
Adding postcss-flexbugs-fixes to dependencies
Adding postcss-loader to dependencies
Adding postcss-preset-env to dependencies
Adding postcss-safe-parser to dependencies
Adding react-app-polyfill to dependencies
Adding react-dev-utils to dependencies
Adding resolve to dependencies
Adding sass-loader to dependencies
Adding style-loader to dependencies
Adding terser-webpack-plugin to dependencies
Adding url-loader to dependencies
Adding webpack to dependencies
Adding webpack-dev-server to dependencies
Adding webpack-manifest-plugin to dependencies
Adding workbox-webpack-plugin to dependencies
Updating the scripts
Replacing "react-scripts start" with "node scripts/start.js"
Replacing "react-scripts build" with "node scripts/build.js"
Replacing "react-scripts test" with "node scripts/test.js"
Configuring package.json
Adding Jest configuration
Adding Babel preset
Adding ESLint configuration
'use strict';const fs =require('fs');const path =require('path');const webpack =require('webpack');const resolve =require('resolve');const PnpWebpackPlugin =require('pnp-webpack-plugin');const HtmlWebpackPlugin =require('html-webpack-plugin');const CaseSensitivePathsPlugin =require('case-sensitive-paths-webpack-plugin');const InlineChunkHtmlPlugin =require('react-dev-utils/InlineChunkHtmlPlugin');const TerserPlugin =require('terser-webpack-plugin');const MiniCssExtractPlugin =require('mini-css-extract-plugin');const OptimizeCSSAssetsPlugin =require('optimize-css-assets-webpack-plugin');const safePostCssParser =require('postcss-safe-parser');const ManifestPlugin =require('webpack-manifest-plugin');const InterpolateHtmlPlugin =require('react-dev-utils/InterpolateHtmlPlugin');const WorkboxWebpackPlugin =require('workbox-webpack-plugin');const WatchMissingNodeModulesPlugin =require('react-dev-utils/WatchMissingNodeModulesPlugin');const ModuleScopePlugin =require('react-dev-utils/ModuleScopePlugin');const getCSSModuleLocalIdent =require('react-dev-utils/getCSSModuleLocalIdent');const paths =require('./paths');const getClientEnvironment =require('./env');const ModuleNotFoundPlugin =require('react-dev-utils/ModuleNotFoundPlugin');const ForkTsCheckerWebpackPlugin =require('react-dev-utils/ForkTsCheckerWebpackPlugin');const typescriptFormatter =require('react-dev-utils/typescriptFormatter');// Source maps are resource heavy and can cause out of memory issue for large source files.const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP!=='false';// Some apps do not need the benefits of saving a web request, so not inlining the chunk// makes for a smoother build process.const shouldInlineRuntimeChunk = process.env.INLINE_RUNTIME_CHUNK!=='false';// Check if TypeScript is setupconst useTypeScript = fs.existsSync(paths.appTsConfig);// style files regexesconst cssRegex =/\.css$/;const cssModuleRegex =/\.module\.css$/;const sassRegex =/\.(scss|sass)$/;const sassModuleRegex =/\.module\.(scss|sass)$/;const lessRegex =/\.less$/;const lessModuleRegex =/\.module\.less$/;// This is the production and development configuration.// It is focused on developer experience, fast rebuilds, and a minimal bundle.
module.exports=function(webpackEnv){
const isEnvDevelopment = webpackEnv ==='development';const isEnvProduction = webpackEnv ==='production';// Webpack uses `publicPath` to determine where the app is being served from.// It requires a trailing slash, or the file assets will get an incorrect path.// In development, we always serve from the root. This makes config easier.const publicPath = isEnvProduction
? paths.servedPath
: isEnvDevelopment &&'/';// Some apps do not use client-side routing with pushState.// For these, "homepage" can be set to "." to enable relative asset paths.const shouldUseRelativeAssetPaths = publicPath ==='./';// `publicUrl` is just like `publicPath`, but we will provide it to our app// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.// Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz.const publicUrl = isEnvProduction
? publicPath.slice(0,-1): isEnvDevelopment &&'';// Get environment variables to inject into our app.const env =getClientEnvironment(publicUrl);// common function to get style loadersconstgetStyleLoaders=<