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
ee91202c
Commit
ee91202c
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Move favicon outside src
parent
3f340f36
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-1
README.md
config/webpack.config.dev.js
+2
-1
config/webpack.config.dev.js
config/webpack.config.prod.js
+2
-1
config/webpack.config.prod.js
template/favicon.ico
+0
-0
template/favicon.ico
with
5 additions
and
3 deletions
+5
-3
README.md
+
1
-
1
View file @
ee91202c
...
...
@@ -48,12 +48,12 @@ Inside that directory, it will generate the initial project structure and instal
my-app/
README.md
index.html
favicon.ico
node_modules/
package.json
src/
App.css
App.js
favicon.ico
index.css
index.js
logo.svg
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.dev.js
+
2
-
1
View file @
ee91202c
...
...
@@ -23,6 +23,7 @@ if (process.argv[2] === '--debug-template') {
var
srcPath
=
path
.
resolve
(
__dirname
,
relativePath
,
'
src
'
);
var
nodeModulesPath
=
path
.
join
(
__dirname
,
'
..
'
,
'
node_modules
'
);
var
indexHtmlPath
=
path
.
resolve
(
__dirname
,
relativePath
,
'
index.html
'
);
var
faviconPath
=
path
.
resolve
(
__dirname
,
relativePath
,
'
favicon.ico
'
);
var
buildPath
=
path
.
join
(
__dirname
,
isInNodeModules
?
'
../../..
'
:
'
..
'
,
'
build
'
);
module
.
exports
=
{
...
...
@@ -91,7 +92,7 @@ module.exports = {
new
HtmlWebpackPlugin
({
inject
:
true
,
template
:
indexHtmlPath
,
favicon
:
path
.
join
(
srcPath
,
'
favicon
.ico
'
)
,
favicon
:
favicon
Path
,
}),
new
webpack
.
DefinePlugin
({
'
process.env.NODE_ENV
'
:
'
"development"
'
}),
// Note: only CSS is currently hot reloaded
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.prod.js
+
2
-
1
View file @
ee91202c
...
...
@@ -24,6 +24,7 @@ if (process.argv[2] === '--debug-template') {
var
srcPath
=
path
.
resolve
(
__dirname
,
relativePath
,
'
src
'
);
var
nodeModulesPath
=
path
.
join
(
__dirname
,
'
..
'
,
'
node_modules
'
);
var
indexHtmlPath
=
path
.
resolve
(
__dirname
,
relativePath
,
'
index.html
'
);
var
faviconPath
=
path
.
resolve
(
__dirname
,
relativePath
,
'
favicon.ico
'
);
var
buildPath
=
path
.
join
(
__dirname
,
isInNodeModules
?
'
../../..
'
:
'
..
'
,
'
build
'
);
module
.
exports
=
{
...
...
@@ -92,7 +93,7 @@ module.exports = {
new
HtmlWebpackPlugin
({
inject
:
true
,
template
:
indexHtmlPath
,
favicon
:
path
.
join
(
srcPath
,
'
favicon
.ico
'
)
,
favicon
:
favicon
Path
,
minify
:
{
removeComments
:
true
,
collapseWhitespace
:
true
,
...
...
This diff is collapsed.
Click to expand it.
template/
src/
favicon.ico
→
template/favicon.ico
+
0
-
0
View file @
ee91202c
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