You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dsl-client/hyper-component.md
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1322,6 +1322,62 @@ end
1322
1322
1323
1323
Note that the `rename` directive can be used to rename both components and sublibraries, giving you full control over the ruby names of the components and libraries.
1324
1324
1325
+
### Importing Webpack Images
1326
+
1327
+
If you store your images in app/javascript/images directory and want to display them in components, please add the following code to app/javascript/packs/application.js
1328
+
1329
+
```javascript
1330
+
var webpackImagesMap = {};
1331
+
var imagesContext =require.context('../images/', true,/\.(gif|jpg|png|svg)$/i);
If you use a lot of libraries and are using a Javascript tool chain with Webpack, having to import the libraries in both Hyperstack and Webpack is redundant and just hard work.
0 commit comments