An Vite/Rollup/Webpack/esbuild plugin to load properties files.
// vite.config.ts
import properties from "unplugin-properties";
export default defineConfig({
plugins: [
// ...
properties.vite(),
],
});
// rollup.config.js
import properties from "unplugin-properties";
export default {
plugins: [
// ...
properties.rollup(),
],
};
// webpack.config.js
module.exports = {
plugins: [
// ...
require("unplugin-properties").webpack(),
],
};
import properties from "unplugin-properties";
require("esbuild").build({
// ...
plugins: [
// ...
properties.esbuild(),
],
});
MIT