Skip to content

Commit

Permalink
release(2.20.3): fix fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
arturu committed Dec 7, 2024
1 parent 48f1fa9 commit 22870c8
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ export default {
},
],
},
// Uncomment if you use loading fonts vi CSS https://git.drupalcode.org/project/bootstrap_italia#loading-fonts-via-css-advanced-users
{
test: /\.(woff|woff2|eot|ttf|svg)$/,
include: [
paths.modules + '/bootstrap-italia/src/fonts',
],
type: 'asset/resource',
generator: {
filename: 'fonts/[name]/[name][ext]',
},
},
],
},
plugins: [
Expand All @@ -63,18 +74,23 @@ export default {
from: paths.modules + '/bootstrap-italia/src/assets/',
to: paths.build + '/assets/'
},
// Lascia commentato per non duplicare i fonts nella cartella dist
// {
// from: paths.modules + '/bootstrap-italia/src/fonts/',
// to: paths.build + '/fonts/'
// },
{
from: './src/images/',
to: paths.build + '/images/'
},
{
from: paths.modules + '/design-scuole-pagine-statiche/src/assets/css/images/',
to: paths.build + '/css/images/'
},
{
from: paths.modules + '/design-scuole-pagine-statiche/src/assets/css/ajax-loader.gif',
to: paths.build + '/css/ajax-loader.gif'
},
{
from: paths.modules + '/design-scuole-pagine-statiche/src/assets/css/images/',
to: paths.build + '/css/images/'
},
{
from: paths.modules + '/design-scuole-pagine-statiche/src/assets/img/',
to: paths.build + '/img/'
Expand Down

0 comments on commit 22870c8

Please sign in to comment.