Engine code for an OpenAI assistant that likes to talk about AI, written using Typescript, Node.js, & the Azure stack. GPT-3 backed with a store of AI Canon documents.
GNU Affero General Public License v3.0
0
stars
1
forks
source link
Trim Fluid bundle size by filtering icons in webpack #15
module.exports = {
module: {
rules: [
// Treat the font files as webpack assets
{
test: /.(ttf|woff2?)$/,
type: 'asset',
},
],
},
resolve: {
// Include 'fluentIconFont' to use the font implementation of the Fluent icons
conditionNames: ['fluentIconFont', 'import'],
},
plugins: [
// Include this plugin
new FluentUIReactIconsFontSubsettingPlugin(),
],
};
https://react.fluentui.dev/?path=/docs/icons-advanced-usage--page
// webpack.config.js const { default: FluentUIReactIconsFontSubsettingPlugin, } = require('@fluentui/react-icons-font-subsetting-webpack-plugin');
module.exports = { module: { rules: [ // Treat the font files as webpack assets { test: /.(ttf|woff2?)$/, type: 'asset', }, ], }, resolve: { // Include 'fluentIconFont' to use the font implementation of the Fluent icons conditionNames: ['fluentIconFont', 'import'], }, plugins: [ // Include this plugin new FluentUIReactIconsFontSubsettingPlugin(), ], };