railpack 1.3.6 → 1.3.7
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.
- checksums.yaml +4 -4
- data/README.md +53 -0
- data/lib/railpack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95f36a32c539fe6e859f97bfd2a301fb933a051ee8048d06434601890fd4f6d4
|
|
4
|
+
data.tar.gz: 6dd6331cd806d2c1345d84290264634997721272bc0b632269f006a37b0da901
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8a277301dbb05856aa3cb123cb494d18fea3d33433eeb516cb92d0dc53fcfc4330bb33ada25b3ef8f368f9307be00fa6e68bf29c61aafbe78a2c733dfe95a0e
|
|
7
|
+
data.tar.gz: '01228226c62dcf91d5147ffc6addc7d21f0bf891b5c89ee63e9552d933025d05a9991ddaf3113c8b2c9014840458dfcbad04bd76e7b6b1e9912ef7354ffa2d5f'
|
data/README.md
CHANGED
|
@@ -76,6 +76,12 @@ bundlers:
|
|
|
76
76
|
bun:
|
|
77
77
|
commands:
|
|
78
78
|
build: "bunx custom-build"
|
|
79
|
+
rollup:
|
|
80
|
+
commands:
|
|
81
|
+
build: "rollup --config custom-config.js"
|
|
82
|
+
webpack:
|
|
83
|
+
commands:
|
|
84
|
+
build: "webpack --config custom-webpack.config.js"
|
|
79
85
|
```
|
|
80
86
|
|
|
81
87
|
#### Watch Flags Configuration
|
|
@@ -87,6 +93,53 @@ esbuild:
|
|
|
87
93
|
target: browser
|
|
88
94
|
format: esm
|
|
89
95
|
watch_flags: ["--watch", "--serve=3000"] # Custom watch flags
|
|
96
|
+
|
|
97
|
+
rollup:
|
|
98
|
+
format: esm
|
|
99
|
+
sourcemap: true
|
|
100
|
+
watch_flags: ["--watch"]
|
|
101
|
+
|
|
102
|
+
webpack:
|
|
103
|
+
mode: production
|
|
104
|
+
target: web
|
|
105
|
+
watch_flags: ["--watch"]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Dynamic Bundler Switching
|
|
109
|
+
|
|
110
|
+
Switch bundlers per environment or dynamically:
|
|
111
|
+
|
|
112
|
+
```yaml
|
|
113
|
+
# Switch bundlers per environment
|
|
114
|
+
development:
|
|
115
|
+
bundler: bun # Fast for development
|
|
116
|
+
|
|
117
|
+
production:
|
|
118
|
+
bundler: esbuild # Speed for production
|
|
119
|
+
|
|
120
|
+
# Or use different bundlers for different tasks
|
|
121
|
+
bundlers:
|
|
122
|
+
esbuild:
|
|
123
|
+
commands:
|
|
124
|
+
build: "esbuild --production"
|
|
125
|
+
webpack:
|
|
126
|
+
commands:
|
|
127
|
+
build: "webpack --config webpack.prod.js"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### Custom Entry Points and Outputs
|
|
131
|
+
|
|
132
|
+
Configure multiple entry points and custom outputs:
|
|
133
|
+
|
|
134
|
+
```yaml
|
|
135
|
+
default:
|
|
136
|
+
entrypoints: ["./app/javascript/application.js", "./app/javascript/admin.js"]
|
|
137
|
+
outdir: "app/assets/builds"
|
|
138
|
+
|
|
139
|
+
# Or single entrypoint
|
|
140
|
+
default:
|
|
141
|
+
entrypoint: "./app/javascript/application.js"
|
|
142
|
+
outdir: "app/assets/builds"
|
|
90
143
|
```
|
|
91
144
|
|
|
92
145
|
## Usage
|
data/lib/railpack/version.rb
CHANGED