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