Skip to content

Commit

Permalink
feat(minor): populate content in tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
NagariaHussain committed May 8, 2023
1 parent dad5a50 commit 77528c9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doppio/commands/spa_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ def setup_tailwindcss(self):

create_file(index_css_path, INDEX_CSS_BOILERPLATE)

# Populate content property in tailwind config file
tailwind_config_path: Path = self.spa_path / "tailwind.config.js"
tailwind_config = tailwind_config_path.read_text()
tailwind_config = tailwind_config.replace(
"content: [],", 'content: ["./src/**/*.{html,jsx,tsx,vue,js,ts}"],'
)
tailwind_config_path.write_text(tailwind_config)

def create_vue_files(self):
app_vue = self.spa_path / "src/App.vue"
create_file(app_vue, APP_VUE_BOILERPLATE)
Expand Down

0 comments on commit 77528c9

Please sign in to comment.