Skip to content

Commit c4d415c

Browse files
committed
Add the output path for large image files and font files
1 parent 71a9a6e commit c4d415c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/templates/_webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ module.exports = {
4444
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
4545
loader: 'url',
4646
query: {
47-
limit: 10000
47+
limit: 10000,
48+
name: 'static/img/[name]_[hash:7].[ext]'
4849
}
4950
},
5051
{
5152
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
5253
loader: 'url',
5354
query: {
54-
limit: 10000
55+
limit: 10000,
56+
name: 'static/fonts/[name]_[hash:7].[ext]'
5557
}
5658
}
5759
]

0 commit comments

Comments
 (0)