mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[Webpack] Change images to not use relative path. (#423)
* Change webpack config to not use relative path for images. Resolves #421. * Move popup images to popup/images. * Move images to popup/images.
This commit is contained in:
committed by
Kyle Spearrin
parent
b51ea6e22d
commit
1c38ff6e9a
@@ -48,11 +48,13 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
test: /\.(jpe?g|png|gif|svg)$/i,
|
||||
exclude: /.*(fontawesome-webfont|glyphicons-halflings-regular)\.svg/,
|
||||
use: [{
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
name: '[name].[ext]',
|
||||
useRelativePath: true
|
||||
name: '[name].[hash].[ext]',
|
||||
outputPath: 'popup/images/',
|
||||
publicPath: '/'
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user