File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,24 @@ For internal events, see [Core Tutorial](../core/README.md)
172172

173173
## Resources
174174

175-
You can get an URL to any resource bundled with your application using the resource method:
175+
You can get an URL to any resource bundled with your application using
176+
the resource method:
176177

177178
> Application resources are resolved as `/apps/{name}/{resource}`
178179
179180
```javascript
180181
const url = proc.resource('/image.png');
181182
```
182183

184+
Or via webpack with:
185+
186+
> [info] This requires you to use [file-loader](https://webpack.js.org/loaders/file-loader/)
187+
> in your webpack configuration.
188+
189+
```javascript
190+
import resource from './resource.ext';
191+
```
192+
183193
## HTTP Requests
184194

185195
You can set up your own HTTP routes using the internal APIs:

0 commit comments

Comments
 (0)