File tree 2 files changed +10
-8
lines changed
packages/react-scripts/config 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
// @remove -on-eject-end
11
11
12
- // @remove -on-eject-begin
13
- // `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
14
- var path = require ( 'path' ) ;
15
- // @remove -on-eject-end
16
12
var autoprefixer = require ( 'autoprefixer' ) ;
17
13
var webpack = require ( 'webpack' ) ;
18
14
var HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
@@ -22,6 +18,11 @@ var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeMod
22
18
var getClientEnvironment = require ( './env' ) ;
23
19
var paths = require ( './paths' ) ;
24
20
21
+ // @remove -on-eject-begin
22
+ // `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
23
+ var path = require ( 'path' ) ;
24
+ // @remove -on-eject-end
25
+
25
26
// Webpack uses `publicPath` to determine where the app is being served from.
26
27
// In development, we always serve from the root. This makes config easier.
27
28
var publicPath = '/' ;
Original file line number Diff line number Diff line change 9
9
*/
10
10
// @remove -on-eject-end
11
11
12
- // @remove -on-eject-begin
13
- // `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
14
- var path = require ( 'path' ) ;
15
- // @remove -on-eject-end
16
12
var autoprefixer = require ( 'autoprefixer' ) ;
17
13
var webpack = require ( 'webpack' ) ;
18
14
var HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
@@ -23,6 +19,11 @@ var url = require('url');
23
19
var paths = require ( './paths' ) ;
24
20
var getClientEnvironment = require ( './env' ) ;
25
21
22
+ // @remove -on-eject-begin
23
+ // `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
24
+ var path = require ( 'path' ) ;
25
+ // @remove -on-eject-end
26
+
26
27
function ensureSlash ( path , needsSlash ) {
27
28
var hasSlash = path . endsWith ( '/' ) ;
28
29
if ( hasSlash && ! needsSlash ) {
You can’t perform that action at this time.
0 commit comments