@tacdaed/fragments 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -3
- package/ng-package.json +1 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,13 +24,27 @@ To enable syntax highlighting, you must import a Highlight.js theme in your app
|
|
|
24
24
|
|
|
25
25
|
```json
|
|
26
26
|
"styles": [
|
|
27
|
-
"node_modules/
|
|
28
|
-
"node_modules/
|
|
29
|
-
"node_modules/fragments/assets/
|
|
27
|
+
"node_modules/highlight.js/styles/github-dark.css",
|
|
28
|
+
"node_modules/@fortawesome/fontawesome-free/css/all.min.css",
|
|
29
|
+
"node_modules/@tacdaed/fragments/assets/styles/scss/style.scss",
|
|
30
30
|
"src/styles.scss"
|
|
31
31
|
]
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
### Add assets to `angular.json`
|
|
35
|
+
|
|
36
|
+
To take assets resource from fragments, like font-family, you must add in assets array in `angular.json` this configuration:
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
"assets": [
|
|
40
|
+
{
|
|
41
|
+
"glob": "**/*",
|
|
42
|
+
"input": "node_modules/@tacdaed/fragments/assets/resources",
|
|
43
|
+
"output": "/assets/resources"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
```
|
|
47
|
+
|
|
34
48
|
#### Choosing a Highlight.js Theme
|
|
35
49
|
|
|
36
50
|
You can choose any theme from:
|
package/ng-package.json
CHANGED
|
@@ -11,15 +11,10 @@
|
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"assets": [
|
|
14
|
-
{
|
|
15
|
-
"glob": "**/*.*",
|
|
16
|
-
"input": "./assets/resources",
|
|
17
|
-
"output": "/assets/resources"
|
|
18
|
-
},
|
|
19
14
|
{
|
|
20
15
|
"glob": "**/*.scss",
|
|
21
16
|
"input": "./assets/styles/scss",
|
|
22
17
|
"output": "/assets/styles/scss"
|
|
23
18
|
}
|
|
24
19
|
]
|
|
25
|
-
}
|
|
20
|
+
}
|