Skip to content

Commit 6efa521

Browse files
authored
Merge pull request #1247 from bitnik/fonts
fix URLs of files in styles.css for binderhubs that are not served at "/"
2 parents 8debab3 + 34c8515 commit 6efa521

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ module.exports = {
1515
test: /\.css$/,
1616
use: ExtractTextPlugin.extract({
1717
fallback: "style-loader",
18-
use: "css-loader"
18+
use: "css-loader",
19+
// Set publicPath as relative path ("./").
20+
// By default it uses the `output.publicPath` ("/static/dist/"), when it rewrites the URLs in styles.css.
21+
// And it causes these files unavailabe if BinderHub has a different base_url than "/".
22+
publicPath: "./"
1923
})
2024
},
2125
{

0 commit comments

Comments
 (0)