Skip to content

Commit

Permalink
Added postcss config when setting up tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jun 11, 2024
1 parent 3f5bbca commit bf954fc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/system/console/asset/AssetConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ protected function installConfigs(
if ($options['tailwind']) {
$this->writeFile(
$path . '/tailwind.config.js',
File::get($this->fixturePath . '/tailwind/' . $type . '.tailwind.config.js.fixture')
File::get($this->fixturePath . '/tailwind/tailwind.' . $type . '.config.js.fixture')
);

$this->writeFile(
$path . '/postcss.config.mjs',
File::get($this->fixturePath . '/tailwind/postcss.config.js.fixture')
);

$packageJson->addDependency('tailwindcss', static::DEFAULT_VERSION_TAILWIND, dev: true);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

0 comments on commit bf954fc

Please sign in to comment.