File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import pkgUp from 'pkg-up'
44import { isObject } from './isObject'
55import resolveFrom from 'resolve-from'
66import importFrom from 'import-from'
7+ import normalizePath from 'normalize-path'
78
89export async function getBuiltInPlugins ( { cwd, resolvedConfig } ) {
910 const tailwindBase = path . dirname (
@@ -77,6 +78,20 @@ export default function getPlugins(config) {
7778 }
7879 }
7980 if ( pkg . name ) {
81+ if (
82+ pkg . name === 'tailwindcss' &&
83+ / n o d e _ m o d u l e s \/ t a i l w i n d c s s \/ l i b \/ p l u g i n s \/ c o n t a i n e r \. j s $ / . test (
84+ normalizePath ( file )
85+ )
86+ ) {
87+ return {
88+ name : 'tailwindcss/plugins/container' ,
89+ description :
90+ "A component for fixing an element's width to the current breakpoint." ,
91+ homepage : 'https://tailwindcss-v0.netlify.app/docs/container/' ,
92+ version : pkg . version ,
93+ }
94+ }
8095 return {
8196 name : pkg . name ,
8297 description : pkg . description ,
You can’t perform that action at this time.
0 commit comments