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'
4
4
import { isObject } from './isObject'
5
5
import resolveFrom from 'resolve-from'
6
6
import importFrom from 'import-from'
7
+ import normalizePath from 'normalize-path'
7
8
8
9
export async function getBuiltInPlugins ( { cwd, resolvedConfig } ) {
9
10
const tailwindBase = path . dirname (
@@ -77,6 +78,20 @@ export default function getPlugins(config) {
77
78
}
78
79
}
79
80
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
+ }
80
95
return {
81
96
name : pkg . name ,
82
97
description : pkg . description ,
You can’t perform that action at this time.
0 commit comments