Skip to content

Commit a438f17

Browse files
author
harunhasdal
committed
Remove path module from webpack config on eject.
Fixes facebook#1174
1 parent f7d9cd8 commit a438f17

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
*/
1010
// @remove-on-eject-end
1111

12+
// @remove-on-eject-begin
13+
// `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
1214
var path = require('path');
15+
// @remove-on-eject-end
1316
var autoprefixer = require('autoprefixer');
1417
var webpack = require('webpack');
1518
var HtmlWebpackPlugin = require('html-webpack-plugin');

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
*/
1010
// @remove-on-eject-end
1111

12+
// @remove-on-eject-begin
13+
// `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
1214
var path = require('path');
15+
// @remove-on-eject-end
1316
var autoprefixer = require('autoprefixer');
1417
var webpack = require('webpack');
1518
var HtmlWebpackPlugin = require('html-webpack-plugin');

0 commit comments

Comments
 (0)