Skip to content

Commit e8c1764

Browse files
bebbirandycoulman
authored andcommitted
exclude html from default loader. (facebook#1075)
1 parent 1f0bb7f commit e8c1764

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ module.exports = function(publicPath) {
138138
// A missing `test` is equivalent to a match.
139139
{
140140
exclude: [
141+
/\.(html)$/,
141142
/\.(js|jsx)$/,
142143
/\.css$/,
143144
/\.json$/

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

+1
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)