[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.
@@ -86,7 +86,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="two-factor-key-page">
|
<div class="two-factor-key-page">
|
||||||
<p>{{i18n.insertYubiKey}}</p>
|
<p>{{i18n.insertYubiKey}}</p>
|
||||||
<img src="../../../../images/two-factor/yubikey.jpg" alt="" class="img-rounded img-responsive" />
|
<img src="../../../images/two-factor/yubikey.jpg" alt="" class="img-rounded img-responsive" />
|
||||||
</div>
|
</div>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="list-section">
|
<div class="list-section">
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
<p ng-if="!u2fReady">Loading...</p>
|
<p ng-if="!u2fReady">Loading...</p>
|
||||||
<div ng-if="u2fReady">
|
<div ng-if="u2fReady">
|
||||||
<p>{{i18n.insertU2f}}</p>
|
<p>{{i18n.insertU2f}}</p>
|
||||||
<img src="../../../../images/two-factor/u2fkey.jpg" alt="" class="img-rounded img-responsive" />
|
<img src="../../../images/two-factor/u2fkey.jpg" alt="" class="img-rounded img-responsive" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<a ui-sref="environment({animation: 'in-slide-up'})" class="settings-icon">
|
<a ui-sref="environment({animation: 'in-slide-up'})" class="settings-icon">
|
||||||
<i class="fa fa-cog fa-lg"></i><span> Settings</span>
|
<i class="fa fa-cog fa-lg"></i><span> Settings</span>
|
||||||
</a>
|
</a>
|
||||||
<img src="../../../images/logo@2x.png" alt="bitwarden" />
|
<img src="../../images/logo@2x.png" alt="bitwarden" />
|
||||||
<p>{{i18n.loginOrCreateNewAccount}}</p>
|
<p>{{i18n.loginOrCreateNewAccount}}</p>
|
||||||
<div class="bottom-buttons">
|
<div class="bottom-buttons">
|
||||||
<a class="btn btn-lg btn-primary btn-block" ui-sref="register({animation: 'in-slide-up'})"
|
<a class="btn btn-lg btn-primary btn-block" ui-sref="register({animation: 'in-slide-up'})"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="splash-page">
|
<div class="splash-page">
|
||||||
<img src="../../../images/logo@3x.png" alt="bitwarden" />
|
<img src="../../images/logo@3x.png" alt="bitwarden" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="about-page">
|
<div class="about-page">
|
||||||
<img src="../../../images/logo@3x.png" alt="bitwarden" />
|
<img src="../../images/logo@3x.png" alt="bitwarden" />
|
||||||
{{$ctrl.i18n.version}} {{$ctrl.version}}<br />
|
{{$ctrl.i18n.version}} {{$ctrl.version}}<br />
|
||||||
© 8bit Solutions LLC 2015-{{$ctrl.year}}
|
© 8bit Solutions LLC 2015-{{$ctrl.year}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
@@ -588,7 +588,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#duoFrameWrapper {
|
#duoFrameWrapper {
|
||||||
background: ~"url('../../images/loading.svg') 0 0 no-repeat";
|
background: ~"url('../images/loading.svg') 0 0 no-repeat";
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 470px;
|
height: 470px;
|
||||||
margin-bottom: -10px;
|
margin-bottom: -10px;
|
||||||
|
|||||||
@@ -48,11 +48,13 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(jpe?g|png|gif|svg)$/i,
|
test: /\.(jpe?g|png|gif|svg)$/i,
|
||||||
|
exclude: /.*(fontawesome-webfont|glyphicons-halflings-regular)\.svg/,
|
||||||
use: [{
|
use: [{
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
options: {
|
options: {
|
||||||
name: '[name].[ext]',
|
name: '[name].[hash].[ext]',
|
||||||
useRelativePath: true
|
outputPath: 'popup/images/',
|
||||||
|
publicPath: '/'
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||