Skip to content

Commit 8eadf41

Browse files
committed
Treat .hex same as other assets
1 parent bb99d04 commit 8eadf41

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

‎webpack.config.js‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ const base = {
111111
}
112112
}
113113
}]
114-
},
115-
{
116-
test: /\.hex$/,
117-
use: [{
118-
loader: 'url-loader',
119-
options: {
120-
limit: 16 * 1024
121-
}
122-
}]
123114
}]
124115
},
125116
plugins: [
@@ -164,7 +155,7 @@ module.exports = [
164155
module: {
165156
rules: base.module.rules.concat([
166157
{
167-
test: /\.(svg|png|wav|mp3|gif|jpg|woff2)$/,
158+
test: /\.(svg|png|wav|mp3|gif|jpg|woff2|hex)$/,
168159
loader: 'url-loader',
169160
options: {
170161
limit: 2048,
@@ -274,7 +265,7 @@ module.exports = [
274265
module: {
275266
rules: base.module.rules.concat([
276267
{
277-
test: /\.(svg|png|wav|mp3|gif|jpg|woff2)$/,
268+
test: /\.(svg|png|wav|mp3|gif|jpg|woff2|hex)$/,
278269
loader: 'url-loader',
279270
options: {
280271
limit: 2048,

0 commit comments

Comments
 (0)