File tree
Expand file treeCollapse file tree1 file changed
+11
-1
lines changed src/v3/tutorial/application
Expand file treeCollapse file tree1 file changed
+11
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -172,14 +172,24 @@ For internal events, see [Core Tutorial](../core/README.md)
|
172 | 172 |
|
173 | 173 | ## Resources
|
174 | 174 |
|
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: |
176 | 177 |
|
177 | 178 | > Application resources are resolved as `/apps/{name}/{resource}`
|
178 | 179 |
|
179 | 180 | ```javascript
|
180 | 181 | const url = proc.resource('/image.png');
|
181 | 182 | ```
|
182 | 183 |
|
| 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 | + |
183 | 193 | ## HTTP Requests
|
184 | 194 |
|
185 | 195 | You can set up your own HTTP routes using the internal APIs:
|
|
You can’t perform that action at this time.
0 commit comments