Skip to content

Commit

Permalink
feat: create vite-plugin-rails, an opinionated version of `vite-plugi…
Browse files Browse the repository at this point in the history
…n-ruby` (#282)
  • Loading branch information
ElMassimo authored Oct 19, 2022
1 parent 0881504 commit 16375fb
Show file tree
Hide file tree
Showing 44 changed files with 5,411 additions and 290 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = {
extends: ['@mussi/eslint-config'],
rules: {
'react/react-in-jsx-scope': 'off',
'import/named': 'off',
},
}
19 changes: 19 additions & 0 deletions docs/src/guide/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ Check the [example app] for a sample setup with most of them.
When using Vue, React, or Svelte, check out [Vite][plugins]'s __[official plugins][plugins]__.
:::

## [Rails](https://github.com/ElMassimo/vite_ruby/tree/main/vite-plugin-rails)

Use <kbd>[vite-plugin-rails]</kbd> to pre-configure most of the recommended plugins in your application.

In the future, `vite_rails` might install this plugin by default.

```ts
plugins: [
Rails({
envVars: { RAILS_ENV: 'development' },
}),
],
```

::: tip
You can opt-out and use `vite-plugin-ruby` instead, manually adding only the plugins you need.
:::


## [Environment](https://github.com/ElMassimo/vite-plugin-environment)

Use <kbd>[vite-plugin-environment]</kbd> to expose environment variables to your
Expand Down
Loading

0 comments on commit 16375fb

Please sign in to comment.