vite-plugin-material-symbols
Version:
Selective loading of Material Symbols for production
90 lines (57 loc) • 2.27 kB
Markdown
# Changelog
## Version 0
### v0.10.0
- Supported Node.js versions: `^22.18 || ^24 || ^26`.
- The project migrated from bun to pnpm.
### v0.9.0
- Supporting Node 26.
### v0.8.0
- Replaced `getUrl` option with two new ones:
- `fontUrl` (string): Material Symbols CSS Provider;
- `paramName` (string): The name of the query parameter to add to the `fontUrl` (default: "icon_names");
- The plugin will automatically add the query parameter with the icon names list to the font URL.
### v0.7.1
- Added the following configuration options for flexibility:
- `moduleIdRegex` — the regex to match module IDs that should be processed for finding icon names;
- `jsxNodeRegex` — The regex to match JSX nodes that should be processed in parsed AST;
- The option `component` now also can be a regex to match multiple component names.
### v0.7.0
- Supporting Vite 8;
- Drop Vite 6 and 7 support;
- Drop Node 20 support.
### v0.6.0
- Supporting Vite 7.
### v0.5.0
- Supporting Node 24.
### v0.4.0
- New option: `preload`, boolean:
- Enables higher priority for loading symbols;
- Disabled by default; More information:
- https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload
- https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preconnect
### v0.3.0
- Fixed the leading slash problem in `dev` mode (serve mode);
- The `placeholder` option removed;
- Placing the `<link>` tag into `index.html` is no longer required:
- The plugin will add `<link>` tag to the `<head>` by itself.
### v0.2.2
- Performance improvement:
- using `for..of` and `Array::push()` instead of `Array::from()`.
- Extracted helpers to make the plugin code more readable.
### v0.2.1
- Improving documentation;
- Clarifying Node.js 20 and 22 as the system requirement.
### v0.2.0
- The `placeholder` is now a complete URL of the Material Symbols CDN;
- New option `getUrl` is a function returning that URL based on
the `iconNamesParam` argument;
- All that allows to keep the HTML link this way:
```html
<link rel="stylesheet" href="__MATERIAL_SYMBOLS__" />
```
### v0.1.1
- Fixed debugging message;
### v0.1.0
- Two configuration options: `placeholder` and `component`.
### v0.0.2
- Initial release, basic operation.