You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// "url" loader works just like "file" loader but it also embeds
138
+
// assets smaller than specified size as data URLs to avoid requests.
86
139
{
87
140
test: /\.(mp4|webm)(\?.*)?$/,
88
141
include: [paths.appSrc,paths.appNodeModules],
@@ -94,38 +147,53 @@ module.exports = {
94
147
}
95
148
]
96
149
},
150
+
// Point ESLint to our predefined config.
97
151
eslint: {
98
152
configFile: path.join(__dirname,'eslint.js'),
99
153
useEslintrc: false
100
154
},
155
+
// We use PostCSS for autoprefixing only.
101
156
postcss: function(){
102
157
return[
103
158
autoprefixer({
104
159
browsers: [
105
160
'>1%',
106
161
'last 4 versions',
107
162
'Firefox ESR',
108
-
'not ie < 9',
163
+
'not ie < 9',// React doesn't support IE8 anyway
109
164
]
110
165
}),
111
166
];
112
167
},
113
168
plugins: [
169
+
// Generates an `index.html` file with the <script> injected.
114
170
newHtmlWebpackPlugin({
115
171
inject: true,
116
172
template: paths.appHtml,
117
173
favicon: paths.appFavicon,
118
174
}),
175
+
// Makes some environment variables available to the JS code, for example:
176
+
// if (process.env.NODE_ENV === 'development') { ... }. See `env.js`.
119
177
newwebpack.DefinePlugin(env),
120
-
// Note: only CSS is currently hot reloaded
178
+
// This is necessary to emit hot updates (currently CSS only):
121
179
newwebpack.HotModuleReplacementPlugin(),
180
+
// Watcher doesn't work well if you mistype casing in a path so we use
181
+
// a plugin that prints an error when you attempt to do this.
182
+
// See https://github.com/facebookincubator/create-react-app/issues/240
122
183
newCaseSensitivePathsPlugin(),
184
+
<<<<<<<HEAD
123
185
newCheckFilenamePlugin({
124
186
regex: /\.jsx$/,
125
187
error: function(filename){
126
188
return'Module load aborted: .jsx extensions are not allowed, use .js extensions only. See create-react-app/issues/290 for more info.\n\tFor: '+filename;
127
189
}
128
190
}),
191
+
=======
192
+
// If you require a missing module and then `npm install` it, you still have
193
+
// to restart the development server for Webpack to discover it. This plugin
194
+
// makes the discovery automatic so you don't have to restart.
195
+
// See https://github.com/facebookincubator/create-react-app/issues/186
0 commit comments