File tree Expand file tree Collapse file tree 4 files changed +70
-1
lines changed Expand file tree Collapse file tree 4 files changed +70
-1
lines changed Original file line number Diff line number Diff line change 1
1
## v2.6.0
2
2
3
- Adds plugins for [ vite] ( vitejs.dev ) and [ rollup] ( rollupjs.org ) !
3
+ Adds plugins for [ vite] ( https:// vitejs.dev) and [ rollup] ( https:// rollupjs.org) !
4
4
5
5
Adds ` ac ` as an npx alias for ` app-config ` .
6
6
Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ module.exports = {
47
47
path : '/guide/react-native/' ,
48
48
children : [ '/guide/react-native/' , '/guide/react-native/example' ] ,
49
49
} ,
50
+ {
51
+ title : 'Vite' ,
52
+ path : '/guide/vite' ,
53
+ } ,
54
+ {
55
+ title : 'Rollup' ,
56
+ path : '/guide/rollup' ,
57
+ } ,
50
58
{
51
59
title : 'Deployment' ,
52
60
path : '/guide/deployment/' ,
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Rollup Bundler Plugin
3
+ ---
4
+
5
+ ::: tip Before Reading
6
+ Head on over to the [ Introduction] ( ../intro/ ) or [ Quick Start] ( ../intro/quick-start ) if you haven't already.
7
+ :::
8
+
9
+ The rollup plugin is a separate package, which you'll need to install:
10
+
11
+ ``` sh
12
+ yarn add -D @app-config/rollup@2
13
+ ```
14
+
15
+ Then add it to your ` rollup.config.js ` :
16
+
17
+ ``` javascript
18
+ import appConfig from ' @app-config/rollup' ;
19
+
20
+ export default {
21
+ plugins: [appConfig ()]
22
+ }
23
+ ```
24
+
25
+ This will allow you to import ` @app-config/main ` from your application, with all
26
+ filesystem and other Node.js code stripped out.
27
+
28
+ ``` javascript
29
+ import config from ' @app-config/main' ;
30
+ ```
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Vite Bundler Plugin
3
+ ---
4
+
5
+ ::: tip Before Reading
6
+ Head on over to the [ Introduction] ( ../intro/ ) or [ Quick Start] ( ../intro/quick-start ) if you haven't already.
7
+ :::
8
+
9
+ The vite plugin is a separate package, which you'll need to install:
10
+
11
+ ``` sh
12
+ yarn add -D @app-config/vite@2
13
+ ```
14
+
15
+ Then add it to your ` vite.config.js ` :
16
+
17
+ ``` javascript
18
+ import appConfig from ' @app-config/vite' ;
19
+
20
+ // https://vitejs.dev/config/
21
+ export default {
22
+ plugins: [appConfig ()]
23
+ }
24
+ ```
25
+
26
+ This will allow you to import ` @app-config/main ` from your application, with all
27
+ filesystem and other Node.js code stripped out.
28
+
29
+ ``` javascript
30
+ import config from ' @app-config/main' ;
31
+ ```
You can’t perform that action at this time.
0 commit comments