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
a5bf0747
Commit
a5bf0747
authored
8 years ago
by
Dan Harper
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
add audio support (#665)
parent
16a97249
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
config/eslint.js
+1
-1
config/eslint.js
config/webpack.config.dev.js
+1
-1
config/webpack.config.dev.js
config/webpack.config.prod.js
+1
-1
config/webpack.config.prod.js
scripts/utils/createJestConfig.js
+1
-1
scripts/utils/createJestConfig.js
with
4 additions
and
4 deletions
+4
-4
config/eslint.js
+
1
-
1
View file @
a5bf0747
...
...
@@ -47,7 +47,7 @@ module.exports = {
settings
:
{
'
import/ignore
'
:
[
'
node_modules
'
,
'
\\
.(json|css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$
'
,
'
\\
.(json|css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm
|wav|mp3|m4a|aac|oga
)$
'
,
],
'
import/extensions
'
:
[
'
.js
'
],
'
import/resolver
'
:
{
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.dev.js
+
1
-
1
View file @
a5bf0747
...
...
@@ -147,7 +147,7 @@ module.exports = {
// "url" loader works just like "file" loader but it also embeds
// assets smaller than specified size as data URLs to avoid requests.
{
test
:
/
\.(
mp4|webm
)(\?
.*
)?
$/
,
test
:
/
\.(
mp4|webm
|wav|mp3|m4a|aac|oga
)(\?
.*
)?
$/
,
loader
:
'
url
'
,
query
:
{
limit
:
10000
,
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.prod.js
+
1
-
1
View file @
a5bf0747
...
...
@@ -157,7 +157,7 @@ module.exports = {
// "url" loader works just like "file" loader but it also embeds
// assets smaller than specified size as data URLs to avoid requests.
{
test
:
/
\.(
mp4|webm
)(\?
.*
)?
$/
,
test
:
/
\.(
mp4|webm
|wav|mp3|m4a|aac|oga
)(\?
.*
)?
$/
,
loader
:
'
url
'
,
query
:
{
limit
:
10000
,
...
...
This diff is collapsed.
Click to expand it.
scripts/utils/createJestConfig.js
+
1
-
1
View file @
a5bf0747
...
...
@@ -21,7 +21,7 @@ module.exports = (resolve, rootDir) => {
const
config
=
{
moduleFileExtensions
:
[
'
jsx
'
,
'
js
'
,
'
json
'
],
moduleNameMapper
:
{
'
^.+
\\
.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$
'
:
resolve
(
'
config/jest/FileStub.js
'
),
'
^.+
\\
.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm
|wav|mp3|m4a|aac|oga
)$
'
:
resolve
(
'
config/jest/FileStub.js
'
),
'
^.+
\\
.css$
'
:
resolve
(
'
config/jest/CSSStub.js
'
)
},
scriptPreprocessor
:
resolve
(
'
config/jest/transform.js
'
),
...
...
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