mirror of https://github.com/zulip/zulip.git
webpack: Add support for png file imports in file-loader.
Adds support for importing png files using file-loader in webpack. Changes the name of the output directory to be files instead of fonts for better readability.
This commit is contained in:
parent
fce6882eb9
commit
9f80418d12
|
@ -114,12 +114,12 @@ export default (env?: string) : webpack.Configuration => {
|
|||
},
|
||||
// load fonts and files
|
||||
{
|
||||
test: /\.(woff(2)?|ttf|eot|svg|otf)(\?v=\d+\.\d+\.\d+)?$/,
|
||||
test: /\.(woff(2)?|ttf|eot|svg|otf|png)(\?v=\d+\.\d+\.\d+)?$/,
|
||||
use: [{
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
name: '[name].[ext]',
|
||||
outputPath: 'fonts/'
|
||||
outputPath: 'files/'
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue