Skip to content

Commit abc58a9

Browse files
authored
Change .cjs endings to .js in tailwind.config (#2161)
1 parent a06fac9 commit abc58a9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

site/content/docs/standard/getting-started/optimization/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<p class="mb-6">
3636
Tailwind is optimized to create as little CSS as possible, so there is no
3737
need to do anything else other than configure
38-
<code>tailwind.config.cjs</code> file.
38+
<code>tailwind.config.js</code> file.
3939
</p>
4040

4141
<p class="mb-6">
@@ -53,7 +53,7 @@
5353
<p class="mb-6">
5454
If you are using <code>PostCSS</code> plugin, another possibility to further
5555
optimize your app is to add <code>cssnano</code> at the end of the
56-
<code>postcss.config.cjs</code>
56+
<code>postcss.config.js</code>
5757
</p>
5858

5959
<div class="pt-2">
@@ -65,7 +65,7 @@
6565

6666
<div class="pt-2">
6767
<!-- prettier-ignore -->
68-
{{< twsnippet/wrapper "postcss.config.cjs" "" "mobile" >}}{{< twsnippet/code active=true lang="js" >}}
68+
{{< twsnippet/wrapper "postcss.config.js" "" "mobile" >}}{{< twsnippet/code active=true lang="js" >}}
6969
module.exports = {
7070
plugins: {
7171
tailwindcss: {},
@@ -245,10 +245,10 @@ <h3 class="mb-3 font-bold">VS Code + Tailwind CSS IntelliSense</h3>
245245

246246
<p class="mb-6">
247247
TW elements is registered as a plugin inside
248-
<code>tailwind.config.cjs</code>. That allows for our custom css classes to
248+
<code>tailwind.config.js</code>. That allows for our custom css classes to
249249
be picked up by the Tailwind CSS IntelliSense. If the IntelliSense is not
250250
showing our classes check whether the <code>content</code> inside
251-
<code>tailwind.config.cjs</code> is defined properly. We encourage to use it
251+
<code>tailwind.config.js</code> is defined properly. We encourage to use it
252252
as it makes the live of a developer much easier.
253253
</p>
254254
</div>

site/content/docs/standard/getting-started/quick-start/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ <h3 class="mb-3 font-bold">How to use the <code>initTE</code> method?</h3>
366366
<p class="mb-2">
367367
2. Install tailwind CSS and its dependencies. After that,
368368
<code>init</code> the tailwind with the Tailwind CLI tool to create
369-
<code>tailwind.config.cjs</code> file.
369+
<code>tailwind.config.js</code> file.
370370
</p>
371371

372372
<div class="pt-2" id="download-vite-step-2">
@@ -378,7 +378,7 @@ <h3 class="mb-3 font-bold">How to use the <code>initTE</code> method?</h3>
378378
</div>
379379

380380
<p class="mb-2 mt-6">
381-
3. Go to the <code>tailwind.config.cjs</code> file and add paths where your
381+
3. Go to the <code>tailwind.config.js</code> file and add paths where your
382382
html files are going to be stored. You can change the
383383
<code>index.html</code> location but make sure to change to
384384
<a
@@ -392,7 +392,7 @@ <h3 class="mb-3 font-bold">How to use the <code>initTE</code> method?</h3>
392392

393393
<div class="pt-2" id="download-vite-step-3">
394394
<!-- prettier-ignore -->
395-
{{< twsnippet/wrapper "tailwind.config.cjs" "" "mobile" >}}{{< twsnippet/code active=true lang="JavaScript" >}}
395+
{{< twsnippet/wrapper "tailwind.config.js" "" "mobile" >}}{{< twsnippet/code active=true lang="JavaScript" >}}
396396
/** @type {import('tailwindcss').Config} */
397397
module.exports = {
398398
content: [
@@ -472,13 +472,13 @@ <h3 class="mb-3 font-bold">How to use the <code>initTE</code> method?</h3>
472472

473473
<p class="mb-2 mt-6">
474474
8. Add js files patterns that loads dynamic component classes to the content
475-
array inside the <code>tailwind.config.cjs</code>. Extend the default tailwind
475+
array inside the <code>tailwind.config.js</code>. Extend the default tailwind
476476
classes by adding the <code>TW elements</code> plugin.
477477
</p>
478478

479479
<div class="pt-2" id="download-vite-step-8">
480480
<!-- prettier-ignore -->
481-
{{< twsnippet/wrapper "tailwind.config.cjs" "" "mobile" >}}{{< twsnippet/code active=true lang="js" >}}
481+
{{< twsnippet/wrapper "tailwind.config.js" "" "mobile" >}}{{< twsnippet/code active=true lang="js" >}}
482482
/** @type {import('tailwindcss').Config} */
483483
module.exports = {
484484
content: [

0 commit comments

Comments
 (0)