Closed joffreyBerrier closed 3 years ago
Hi @joffreyBerrier
Thanks for submitting an issue.
I've was able to replicate the performance you're describing using similar modules. As far as I can tell, the big contributing factor is the postcss-loader time, from tailwindcss.
The biggest speed improvement from this module is using esbuild which is enabled on safe-risky modes. If javascript isn't a bottleneck you won't see as big of an improvement.
Risky would give you an improvement because of the thread-loader and hardsource caching. Not a lot further I can do on my end around this as both of these optimisations arer risky, was there an issue using the risky mode?
Looking into this did give me the idea of clearing the postcss-preset-env
for local development, which should give a tiny performance boost since it doesn't need to polyfill.
There are a couple of things I'd recommend trying based on your config:
eslint-loader
, it's deprecated in favour of a plugin now https://github.com/webpack-contrib/eslint-webpack-pluginIn version 1.1 I plan to add support for swapping out tailwindcss for windicss automatically which gives a significant build time improvement.
@harlan-zw as we have tailwind-jit now, windicss should not be needed anymore.
I opened a PR as there was a typo in the readme, it stated expiremental
instead experimental
which might also be an issue if you copy that part directly as it will not change anything.
Describe the bug
I have BootstrapVue on my project, but I am trying to remove it, the gain after removing is ~ 15 second
Without your module :
That's why I need your module ❤️
With your module : (safe / experimental)
With your module : (risky)
=> Second time (thanks to the cache)
To Reproduce My nuxt.config.js
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.