Skip to content

Commit

Permalink
fixed config to allow normal importing of fonts (#179)
Browse files Browse the repository at this point in the history
Fixes #178 Support loading font libraries
  • Loading branch information
paddymul authored Nov 25, 2023
1 parent d06bfe1 commit 57fa815
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,5 @@ buckaroo/nbextension/*
buckaroo/labextension/*
docs/*.js
docs/*.js.map
docs/*js*
docs/*js*
docs/source/_static/*woff*
42 changes: 21 additions & 21 deletions webpack-local-dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@ const baseRules = [

{ test: /\.js$/, loader: 'source-map-loader' },
{ test: /\.css$/, use: ['style-loader', 'css-loader'] },
{
test: /\.scss$/,
use: [
// We're in dev and want HMR, SCSS is handled in JS
// In production, we want our css as files
"style-loader",
"css-loader",
{
loader: "postcss-loader",
options: {
postcssOptions: {
plugins: [
["postcss-preset-env"],
],
},
},
},
"sass-loader"
],
},
{
test: /\.scss$/,
use: [
// We're in dev and want HMR, SCSS is handled in JS
// In production, we want our css as files
"style-loader",
"css-loader",
{
loader: "postcss-loader",
options: {
postcssOptions: {
plugins: [
["postcss-preset-env"],
],
},
},
},
"sass-loader"
],
},
{
test: luminoThemeImages,
issuer: /\.css$/,
Expand All @@ -51,7 +51,7 @@ const baseRules = [
},
},
{
test: /\.(jpg|png|gif)$/,
test: /\.(jpg|png|gif|woff|woff2)$/,
exclude: luminoThemeImages,
use: ['file-loader'],
},
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const baseRules = [
},
},
{
test: /\.(jpg|png|gif)$/,
test: /\.(jpg|png|gif|woff|woff2)$/,
exclude: luminoThemeImages,
use: ['file-loader'],
},
Expand Down

0 comments on commit 57fa815

Please sign in to comment.