area17 / blast

Storybook for Laravel Blade 🚀
https://dev.to/area17/getting-started-with-blast-storybook-for-laravel-blade-c5c
Apache License 2.0
262 stars 37 forks source link

Convert resolveTailwindConfig.js to ESM #108

Closed ptrckvzn closed 5 months ago

ptrckvzn commented 5 months ago

Use dynamic imports instead of require()

ptrckvzn commented 5 months ago

I tested using CommonJS by renaming my tailwind config to tailwind.config.cjs, changing the export to module.exports = {} and updating the blast config tailwind_config_path key. It seems to work well on a basic app.