fix(deps): update dependency @astrojs/tailwind to v4 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@astrojs/tailwind (source) | dependencies | major | ^2.1.1 -> ^4.0.0 |
Release Notes
withastro/astro (@astrojs/tailwind)
v4.0.0
Major Changes
-
#7391
556fd694a
Thanks @bluwy! - Rename optionsconfig.path
toconfigFile
, andconfig.applyBaseStyles
toapplyBaseStyles
. If you are using these options, you need to migrate to the new names.// astro.config.mjs import { defineConfig } from 'astro/config'; import tailwind from '@​astrojs/tailwind'; export default defineConfig({ integrations: [ tailwind({ - config: { - path: '...', - applyBaseStyles: true, - }, + configFile: '...', + applyBaseStyles: true, }), ], });
-
#6724
3f1cb6b1a
Thanks @TomPichaud! - Let thetailwindcss
PostCSS plugin load its config file itself. This changes the Tailwind config loading behaviour where it is loaded fromprocess.cwd()
instead of the projectroot
.If your Tailwind config file is not located in the current working directory, you will need to configure the integration's
configFile
option to load from a specific path:// astro.config.mjs import { defineConfig } from 'astro/config'; import tailwind from '@​astrojs/tailwind'; import { fileURLToPath } from 'url'; export default defineConfig({ integrations: [ tailwind({ configFile: fileURLToPath(new URL('./tailwind.config.cjs', import.meta.url)), }), ], });
This change also requires a Tailwind config file to exist in your project as a fallback config is no longer provided. It is set up automatically during
astro add tailwind
, but if it does not exist, you can manually create atailwind.config.cjs
file in your project root:// tailwind.config.cjs /** @​type {import('tailwindcss').Config} */ module.exports = { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], theme: { extend: {}, }, plugins: [], };
Patch Changes
v3.1.3
Patch Changes
-
#7104
826e02890
Thanks @bluwy! - Specify"files"
field to only publish necessary files -
Updated dependencies [
4516d7b22
,e186ecc5e
,c6d7ebefd
,914c439bc
,e9fc2c221
,075eee08f
,719002ca5
,fc52681ba
,fb84622af
,cada10a46
,cd410c5eb
,73ec6f6c1
,410428672
,763ff2d1e
,c1669c001
,3d525efc9
]:- astro@2.5.0
v3.1.2
Patch Changes
v3.1.1
Patch Changes
-
#6419
0de08773f
Thanks @Yan-Thomas! - Make Tailwind & Turbolinks integration descriptions more consistent -
Updated dependencies [
acf78c5e2
,04e624d06
,cc90d7219
,a9a6ae298
,6a7cf0712
,bfd67ea74
,f6eddffa0
,c63874090
,d637d1ea5
,637f9bc72
,77a046e88
]:- astro@2.1.3
v3.1.0
Minor Changes
-
#6213
afbbc4d5b
Thanks @Princesseuh! - Updated compilation settings to disable downlevelling for Node 14
Patch Changes
- Updated dependencies [
fec583909
,b087b83fe
,694918a56
,a20610609
,a4a74ab70
,75921b3cd
,afbbc4d5b
]:- astro@2.1.0
v3.0.1
Patch Changes
-
#5478
1c7eef308
Thanks @nemo0! - Update READMEs for consistency -
#6002
254eb21c8
Thanks @royeden! - Re-enable autoprefixer in dev -
Updated dependencies [
b4432cd6b
,98a4a914b
,071e1dee7
,322e059d0
,b994f6f35
,12c68343c
]:- astro@2.0.3
v3.0.0
Major Changes
-
#5717
a3a7fc929
Thanks @bluwy! - Removestyle.postcss
Astro config. Refactor Tailwind integration to configure throughvite
instead. Also disablesautoprefixer
in dev. -
#5806
7572f7402
Thanks @matthewp! - Make astro apeerDependency
of integrationsThis marks
astro
as apeerDependency
of several packages that are already gettingmajor
version bumps. This is so we can more properly track the dependency between them and what version of Astro they are being used with.
Patch Changes
-
#5908
9e57268f1
Thanks @MoustaphaDev! - Fix Vite not picking up PostCSS config files because of the Tailwind integration -
Updated dependencies [
93e633922
,16dc36a87
,01f3f463b
,e2019be6f
,05caf445d
,49ab4f231
,a342a486c
,8fb28648f
,1f92d64ea
,c2180746b
,ae8a012a7
,cf2de5422
,ce5c5dbd4
,ec09bb664
,665a2c222
,259a539d7
,f7aa1ec25
,4987d6f44
,304823811
,302e0ef8f
,55cea0a9d
,dd56c1941
,9963c6e4d
,be901dc98
,f6cf92b48
,e818cc046
,8c100a6fe
,116d8835c
,840412128
,1f49cddf9
,7325df412
,16c7d0bfd
,a9c292026
,2a5786419
,4a1cabfe6
,a8d3e7924
,fa8c131f8
,64b8082e7
,c4b0cb8bf
,23dc9ea96
,63a6ceb38
,a3a7fc929
,52209ca2a
,5fd9208d4
,5eba34fcc
,899214298
,3a00ecb3e
,5eba34fcc
,2303f9514
,1ca81c16b
,b66d7195c
]:- astro@2.0.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot. The local configuration can be found in the local Renovate Bot repository.