diff --git a/config/env.js b/config/env.js index 30a6c7f..b681185 100644 --- a/config/env.js +++ b/config/env.js @@ -1,5 +1,3 @@ -'use strict'; - const fs = require('fs'); const path = require('path'); const paths = require('./paths'); diff --git a/config/jest/cssTransform.js b/config/jest/cssTransform.js index 8f65114..d361235 100644 --- a/config/jest/cssTransform.js +++ b/config/jest/cssTransform.js @@ -1,5 +1,3 @@ -'use strict'; - // This is a custom Jest transformer turning style imports into empty objects. // http://facebook.github.io/jest/docs/en/webpack.html diff --git a/config/jest/fileTransform.js b/config/jest/fileTransform.js index 9e4047d..7c0150f 100644 --- a/config/jest/fileTransform.js +++ b/config/jest/fileTransform.js @@ -1,5 +1,3 @@ -'use strict'; - const path = require('path'); // This is a custom Jest transformer turning file imports into filenames. diff --git a/config/paths.js b/config/paths.js index 6d16efc..29af90b 100644 --- a/config/paths.js +++ b/config/paths.js @@ -1,5 +1,3 @@ -'use strict'; - const path = require('path'); const fs = require('fs'); const url = require('url'); diff --git a/config/polyfills.js b/config/polyfills.js index 66dff0a..9c61b85 100644 --- a/config/polyfills.js +++ b/config/polyfills.js @@ -1,5 +1,3 @@ -'use strict'; - if (typeof Promise === 'undefined') { // Rejection tracking prevents a common issue where React gets into an // inconsistent state due to an error, but it gets swallowed by a Promise, diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 1ae34ea..9d58f3b 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -1,5 +1,3 @@ -'use strict'; - //const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); @@ -15,9 +13,7 @@ const getClientEnvironment = require('./env'); // 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. const publicPath = paths.servedPath; -// 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 === './'; + // Source maps are resource heavy and can cause out of memory issue for large source files. const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false'; // `publicUrl` is just like `publicPath`, but we will provide it to our app diff --git a/config/webpackDevServer.config.js b/config/webpackDevServer.config.js index 6cfa8cf..f501fda 100644 --- a/config/webpackDevServer.config.js +++ b/config/webpackDevServer.config.js @@ -1,5 +1,3 @@ -'use strict'; - const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware'); const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware'); const ignoredFiles = require('react-dev-utils/ignoredFiles'); diff --git a/scripts/build.js b/scripts/build.js index 5709f48..a43824f 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -1,5 +1,3 @@ -'use strict'; - // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; diff --git a/scripts/start.js b/scripts/start.js index 39d105b..7dd6707 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -1,5 +1,3 @@ -'use strict'; - // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'development'; process.env.NODE_ENV = 'development'; diff --git a/scripts/test.js b/scripts/test.js index 45a643a..d0991e2 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -1,5 +1,3 @@ -'use strict'; - // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'test'; process.env.NODE_ENV = 'test';