Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patricklx/ember-webpack-hot-reload
https://github.com/patricklx/ember-webpack-hot-reload
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/patricklx/ember-webpack-hot-reload
- Owner: patricklx
- Created: 2023-10-20T14:25:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-09T14:47:17.000Z (about 1 year ago)
- Last Synced: 2024-10-09T12:46:15.529Z (3 months ago)
- Language: TypeScript
- Size: 22.2 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# ember-webpack-hot-reload
Ember Webpack server with hot reload.
this can hot reload
* helpers
* modifiers
* components + templates, fcct components and its deps
* routes/controllers/route-templates (although it refreshes the whole route and thus looses all state)it cannot hot reload local properties that turn out to be helpers/modifiers/components.
will be worked on soon...this will not work:
```hbs{{this.myHelper}}
{{#let (component 'x') as |comp|}}
{{comp}} -- will no hot reload, not sure if this is a bug
-- will hot reload
{{#comp}}{{/comp}} -- will hot reload
{{/let}}
```## Compatibility
- Ember.js v4.8 or above
- Embroider or ember-auto-import v2## Installation
```
ember install ember-webpack-hot-reload
```## Usage
update your `ember-cli-build.js` with
```js
return require('@embroider/compat').compatBuild(app, require('ember-webpack-hot-reload').Webpack, {...});
```can be disabled by setting
devServer.enabled = false;
or just disable hot reload by setting
devServer.hot = false
## Contributing
See the [Contributing](CONTRIBUTING.md) guide for details.
## License
This project is licensed under the [MIT License](LICENSE.md).