Skip to content

Commit a825472

Browse files
committed
Webpacker support
1 parent 4d3ce1c commit a825472

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,24 @@ Features:
1313
See some [screenshots](#screenshots).
1414

1515
## Install
16-
- Add to your Gemfile: `gem 'activeadmin_blaze_theme'`
17-
- Execute bundle
16+
- Add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
17+
18+
If you installed Active Admin **without** Webpacker support:
19+
1820
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
1921

2022
```scss
2123
@import "activeadmin_blaze_theme/theme";
2224
```
2325

26+
If you are using Webpacker:
27+
28+
- Add at the end of your Active Admin javascript pack (_app/javascript/packs/active_admin.js_):
29+
30+
```js
31+
require('activeadmin_blaze_theme');
32+
```
33+
2434
## Customize
2535
- To change colors add to your Active Admin styles (before **activeadmin_blaze_theme/theme** import):
2636

app/assets/stylesheets/activeadmin_blaze_theme/theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'icomoon';
1+
// @import 'icomoon';
22
@import 'blaze/blaze';
33

44
@import url('https://fonts.googleapis.com/css?family=Roboto');

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Styles
2+
import 'activeadmin_blaze_theme/app/assets/stylesheets/activeadmin_blaze_theme/theme'

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "activeadmin_blaze_theme",
3+
"version": "0.6.2",
4+
"description": "A theme for Active Admin using Blaze CSS",
5+
"author": "Mattia Roccoberton <mat@blocknot.es>",
6+
"license": "MIT",
7+
"homepage": "https://github.com/blocknotes/activeadmin_blaze_theme",
8+
"main": "index.js",
9+
"files": [
10+
"app/**/*",
11+
"index.js"
12+
]
13+
}

0 commit comments

Comments
 (0)