0.2.3 • Published 1 year ago
tailprops-webpack-plugin v0.2.3
tailprops-webpack-plugin
tailprops-webpack-plugin is the Webpack integration for the Tailprops library.
Current framework support
Framework | Supported |
---|---|
React | ✅ |
Preact | ✅ |
Svelte | 🚧 |
Installation
Install Tailprops and the Webpack plugin as dev dependencies:
npm install -D tailprops tailprops-webpack-plugin
Then, add the plugin to your webpack.config.js
:
// webpack.config.js
const { TailpropsWebpackPlugin } = require("tailprops-webpack-plugin");
module.exports = {
// ...
plugins: [
// ...
new TailpropsWebpackPlugin(), // Add tailprops to your plugins
],
};
Lastly, add typings and the Tailwind transform by running:
npx tailprops init react # or preact