Skip to content

Commit c76b721

Browse files
bebbijarlef
authored andcommitted
exclude html from default loader. (facebook#1075)
1 parent 27d6e93 commit c76b721

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ module.exports = {
124124
// A missing `test` is equivalent to a match.
125125
{
126126
exclude: [
127+
/\.(html)$/,
127128
/\.(js|jsx)$/,
128129
/\.css$/,
129130
/\.json$/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ module.exports = {
132132
// A missing `test` is equivalent to a match.
133133
{
134134
exclude: [
135+
/\.(html)$/,
135136
/\.(js|jsx)$/,
136137
/\.css$/,
137138
/\.json$/

0 commit comments

Comments
 (0)