MCPcopy
hub / github.com/nuxt-modules/tailwindcss / ModuleOptions

Interface ModuleOptions

src/types.ts:91–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91export interface ModuleOptions {
92 /**
93 * The path of the Tailwind configuration file. The extension can be omitted, in which case it will try to find a `.js`, `.cjs`, `.mjs`, or `.ts` file.
94 *
95 * @default []
96 * @deprecated provide string in `config`
97 */
98 configPath: Arrayable<string>
99 /**
100 * The path of the Tailwind CSS file. If the file does not exist, the module's default CSS file will be imported instead.
101 *
102 * @default '~/assets/css/tailwind.css'
103 */
104 cssPath: string | false | [string, { injectPosition: InjectPosition }]
105 /**
106 * Configuration for Tailwind CSS. Accepts (array of) string and inline configurations.
107 *
108 * for default, see https://tailwindcss.nuxtjs.org/tailwind/config
109 */
110 config: Arrayable<InlineTWConfig | string>
111 /**
112 * [tailwind-config-viewer](https://github.com/rogden/tailwind-config-viewer) usage *in development*
113 *
114 * @default true // { endpoint: '_tailwind' }
115 */
116 viewer: BoolObj<ViewerConfig>
117 /**
118 * Usage of configuration references in runtime. See https://tailwindcss.nuxtjs.org/tailwind/config#referencing-in-the-application
119 *
120 * @default false // if true, { alias: '#tailwind-config', level: 2 }
121 */
122 exposeConfig: BoolObj<ExposeConfig>
123 /**
124 * Suppress logging to the console when everything is ok
125 *
126 * @default nuxt.options.logLevel === 'silent'
127 */
128 quiet: boolean
129 /**
130 * Enable some utilities for better editor support and DX.
131 *
132 * Read https://tailwindcss.nuxtjs.org/tailwind/editor-support.
133 *
134 * @default false // if true, { autocompleteUtil: true }
135 */
136 editorSupport: BoolObj<EditorSupportConfig>
137 /**
138 * Enable module experimental functionalities.
139 *
140 * @default false
141 */
142 experimental?: Partial<ExperimentalOptions>
143 /**
144 * This option falls back to the Tailwind configuration inlined to the PostCSS
145 * loader, so any configuration changes while the dev server is running will
146 * not reflect. This is similar to the functionality prior to v6.12.0.
147 *
148 * Note: this is only provided for temporary broken builds that may require

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected