Skip to content

Commit

Permalink
Merge pull request #684 from zooniverse/wpconfig-path
Browse files Browse the repository at this point in the history
Fix JS Asset Loading
  • Loading branch information
lcjohnso authored Dec 10, 2024
2 parents 950414c + 4a62257 commit 6b2eae1
Show file tree
Hide file tree
Showing 3 changed files with 5 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('../images/builder-landing.jpg') center center no-repeat
background: url('https://lab.zooniverse.org/src/images/builder-landing.jpg') center center no-repeat
background-size: cover
color: white
display: flex
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module.exports = {

output: {
path: path.join(__dirname, '/dist/'),
filename: '[name].js'
filename: '[name].js',
publicPath: '/'
},

plugins: [
Expand Down
3 changes: 2 additions & 1 deletion webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ module.exports = {
output: {
path: path.join(__dirname, '/dist/'),
filename: '[name]-[chunkhash].js',
chunkFilename: '[name]-[chunkhash].js'
chunkFilename: '[name]-[chunkhash].js',
publicPath: '/'
},

plugins: [
Expand Down

0 comments on commit 6b2eae1

Please sign in to comment.