Skip to content

Commit

Permalink
Edit webpack image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbouslog committed Dec 10, 2024
1 parent 17efba1 commit 4911fca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/styles/components/landing.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.landing
align-items: center
background: url('https://static.zooniverse.org/lab.zooniverse.org/28a16ad6ccf0a2dd941d.jpg') center center no-repeat
background: url('../images/builder-landing.jpg') center center no-repeat
background-size: cover
color: white
display: flex
Expand Down
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ module.exports = {
},
{
test: /\.(jpg|png|gif|otf|eot|svg|ttf|woff\d?)$/,
type: 'asset/resource'
type: 'asset/resource',
generator: {
filename: '[name][ext]',
publicPath: '../',
}
},
{
test: /\.(ico\d?)$/,
Expand Down
6 changes: 5 additions & 1 deletion webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ module.exports = {
},
{
test: /\.(jpg|png|gif|otf|eot|svg|ttf|woff\d?)$/,
type: 'asset/resource'
type: 'asset/resource',
generator: {
filename: '[name][ext]',
publicPath: '../',
}
},
{
test: /\.(ico\d?)$/,
Expand Down

0 comments on commit 4911fca

Please sign in to comment.