Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
c13f7f40
Commit
c13f7f40
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Style tweaks
parent
cd815aaf
1 merge request
!353
Add check-filename-webpack-plugin to warn on JSX file extension
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
scripts/eject.js
+1
-1
scripts/eject.js
scripts/start.js
+1
-0
scripts/start.js
scripts/test.js
+1
-1
scripts/test.js
scripts/utils/createJestConfig.js
+0
-0
scripts/utils/createJestConfig.js
with
3 additions
and
2 deletions
+3
-2
scripts/eject.js
+
1
-
1
View file @
c13f7f40
...
...
@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
var
createJestConfig
=
require
(
'
./utils/create
-j
est
-c
onfig
'
);
var
createJestConfig
=
require
(
'
./utils/create
J
est
C
onfig
'
);
var
fs
=
require
(
'
fs
'
);
var
path
=
require
(
'
path
'
);
var
prompt
=
require
(
'
./utils/prompt
'
);
...
...
This diff is collapsed.
Click to expand it.
scripts/start.js
+
1
-
0
View file @
c13f7f40
...
...
@@ -187,6 +187,7 @@ function addMiddleware(devServer) {
// - /index.html (served as HTML5 history API fallback)
// - /*.hot-update.json (WebpackDevServer uses this too for hot reloading)
// - /sockjs-node/* (WebpackDevServer uses this for hot reloading)
// Tip: use https://www.debuggex.com/ to visualize the regex
var
mayProxy
=
/^
(?!\/(
index
\.
html$|.*
\.
hot-update
\.
json$|sockjs-node
\/))
.*$/
;
devServer
.
use
(
mayProxy
,
// Pass the scope regex both to Express and to the middleware for proxying
...
...
This diff is collapsed.
Click to expand it.
scripts/test.js
+
1
-
1
View file @
c13f7f40
...
...
@@ -9,7 +9,7 @@
process
.
env
.
NODE_ENV
=
'
test
'
;
const
createJestConfig
=
require
(
'
./utils/create
-j
est
-c
onfig
'
);
const
createJestConfig
=
require
(
'
./utils/create
J
est
C
onfig
'
);
const
jest
=
require
(
'
jest
'
);
const
path
=
require
(
'
path
'
);
const
paths
=
require
(
'
../config/paths
'
);
...
...
This diff is collapsed.
Click to expand it.
scripts/utils/create
-j
est
-c
onfig.js
→
scripts/utils/create
J
est
C
onfig.js
+
0
-
0
View file @
c13f7f40
File moved
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets