Skip to content

Commit

Permalink
Explain embroider usage (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
gossi authored Jan 6, 2023
1 parent f66c1bc commit 43fd9c3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ember-theemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,34 @@ Available options:

- `defaultTheme: string` - the theme loaded by default

#### Embroider

To use `ember-theemo` with embroider, you need to use the provided webpack
plugin:

```js
'use strict';

const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const theemoPlugin = require('ember-theemo/lib/webpack');

module.exports = function (defaults) {
const app = new EmberApp(defaults, {
// ...
});

const { Webpack } = require('@embroider/webpack');

return require('@embroider/compat').compatBuild(app, Webpack, {
packagerOptions: {
webpackConfig: {
plugins: [theemoPlugin()]
}
}
});
};
```

### API

Use the `theemo` service to control themes:
Expand Down

0 comments on commit 43fd9c3

Please sign in to comment.