1
0
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:
Oscar Hinton
2017-12-07 22:04:43 +01:00
committed by Kyle Spearrin
parent b51ea6e22d
commit 1c38ff6e9a
12 changed files with 10 additions and 8 deletions

View File

@@ -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: '/'
}
}]
}