From 57fcc32296943e83b31527056d726593ce1223d2 Mon Sep 17 00:00:00 2001 From: Cliff Johnson Date: Mon, 9 Dec 2024 17:10:17 -0600 Subject: [PATCH 1/5] add public path back, pt1 --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index ac7c4442..ed1d1a25 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,7 +30,8 @@ module.exports = { output: { path: path.join(__dirname, '/dist/'), - filename: '[name].js' + filename: '[name].js', + publicPath: '/' }, plugins: [ From 2eb958b9edc775912d38f0cc591b299b08d10753 Mon Sep 17 00:00:00 2001 From: Cliff Johnson Date: Mon, 9 Dec 2024 17:15:09 -0600 Subject: [PATCH 2/5] add public path back, pt2 --- webpack.production.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.production.config.js b/webpack.production.config.js index ec3096e1..7e7cc27d 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -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: [ From e3a41f988ae482aac7777bb676ed8f5d6ffd5c60 Mon Sep 17 00:00:00 2001 From: Mark Bouslog Date: Tue, 10 Dec 2024 11:13:36 -0600 Subject: [PATCH 3/5] Edit background image path --- src/styles/components/landing.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/components/landing.styl b/src/styles/components/landing.styl index 3a0e9cd2..4a0e2e71 100644 --- a/src/styles/components/landing.styl +++ b/src/styles/components/landing.styl @@ -1,6 +1,6 @@ .landing align-items: center - background: url('../images/builder-landing.jpg') center center no-repeat + background: url('~../images/builder-landing.jpg') center center no-repeat background-size: cover color: white display: flex From 17efba17e79f1c25e31095142bab9e3d7b31d3d6 Mon Sep 17 00:00:00 2001 From: Mark Bouslog Date: Tue, 10 Dec 2024 12:00:26 -0600 Subject: [PATCH 4/5] Change background image url --- src/styles/components/landing.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/components/landing.styl b/src/styles/components/landing.styl index 4a0e2e71..ae8d3328 100644 --- a/src/styles/components/landing.styl +++ b/src/styles/components/landing.styl @@ -1,6 +1,6 @@ .landing align-items: center - background: url('~../images/builder-landing.jpg') center center no-repeat + background: url('https://static.zooniverse.org/lab.zooniverse.org/28a16ad6ccf0a2dd941d.jpg') center center no-repeat background-size: cover color: white display: flex From 4911fcaa3420b77acc2805c72a9982b0654c84b3 Mon Sep 17 00:00:00 2001 From: Mark Bouslog Date: Tue, 10 Dec 2024 12:40:26 -0600 Subject: [PATCH 5/5] Edit webpack image builds --- src/styles/components/landing.styl | 2 +- webpack.config.js | 6 +++++- webpack.production.config.js | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/styles/components/landing.styl b/src/styles/components/landing.styl index ae8d3328..3a0e9cd2 100644 --- a/src/styles/components/landing.styl +++ b/src/styles/components/landing.styl @@ -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 diff --git a/webpack.config.js b/webpack.config.js index ed1d1a25..95afa5f6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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?)$/, diff --git a/webpack.production.config.js b/webpack.production.config.js index 7e7cc27d..706c9147 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -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?)$/,