Skip to content

Commit

Permalink
Add sounds to bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Jan 10, 2021
1 parent 337bb9d commit c326fdf
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
12 changes: 6 additions & 6 deletions assets/app.js

Large diffs are not rendered by default.

Binary file modified assets/app.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion ui/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<app-update-available></app-update-available>
<communication-error></communication-error>
<dataset-import-failure></dataset-import-failure>
<audio id="sharp" src="/sounds/sharp.ogg" crossOrigin="anonymous"></audio>
<audio id="sharp" src="./sounds/sharp.ogg" crossOrigin="anonymous"></audio>
</div>
</template>
2 changes: 1 addition & 1 deletion ui/components/ProcessInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default Vue.extend({
},
computed: {
upSince() : string {
return moment.unix(this.info.start).format('MMM. Do, YYYY [@] h:mmA');
return moment.unix(this.info.start).format('MMM. Do, YYYY [at] h:mmA');
},
},
methods: {
Expand Down
13 changes: 11 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = [{
],
},
{
test: /\.png$/,
test: /\.(png|webp)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]',
Expand All @@ -88,6 +88,16 @@ module.exports = [{
publicPath: '/fonts/',
},
},
{
test: /\.ogg$/,
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: '/sounds/',
publicPath: '/sounds/',
esModule: false,
},
},
],
},
plugins: [
Expand All @@ -103,7 +113,6 @@ module.exports = [{
{ from: 'ui/images/app-icon-apple-touch.png', to: 'images/' },
{ from: 'ui/images/app-icon-medium.png', to: 'images/' },
{ from: 'ui/images/app-icon-large.png', to: 'images/' },
{ from: 'ui/sounds/sharp.ogg', to: 'sounds/' },
],
}),
new CompressionPlugin({
Expand Down

0 comments on commit c326fdf

Please sign in to comment.