Skip to content

Commit 91de1d5

Browse files
author
Mihai Voinea
authored
fix: images & fonts not being properly bundled (Kocal#571)
1 parent 186995a commit 91de1d5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

template/webpack.config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,20 @@ const config = {
4848
test: /\.(png|jpg|jpeg|gif|svg|ico)$/,
4949
loader: 'file-loader',
5050
options: {
51-
name: '[name].[ext]',
51+
name: '[path][name].[ext]',
5252
outputPath: '/images/',
53-
emitFile: false,
53+
emitFile: true,
54+
esModule: false,
5455
},
5556
},
5657
{
5758
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
5859
loader: 'file-loader',
5960
options: {
60-
name: '[name].[ext]',
61+
name: '[path][name].[ext]',
6162
outputPath: '/fonts/',
62-
emitFile: false,
63+
emitFile: true,
64+
esModule: false,
6365
},
6466
},
6567
],

0 commit comments

Comments
 (0)