It seems you should add it to plug-ins? Not content
plugins: [
require('tw-elements/dist/plugin')
]
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi All,
Any idea how does this works please. I am trying to follow the tutorial here:
https://tailwind-elements.com/quick-start/
I installed the plugin:
npm install tw-elements
And added this to my tailwind.config.js file:
module.exports = {
content: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
'./node_modules/tw-elements/dist/js/**/*.js' <-------
],
app.blade.php
@stack('scripts')
<script src="./TW-ELEMENTS-PATH/dist/js/index.min.js"></script>
@if
Which path shall I use above I do not get it.
Thanks!
in resources/js/app.js add import 'tw-elements'; it will work
Please or to participate in this conversation.