Commit 3b1558a
* Add ability to set `transformToRequire` option under `vue` in webpack config,
This provides the missing feature from html-loader to specify which tag-attribute combination to be transformed to `require()`.
`transformToRequire` Defaults to {img: 'src'}.
Example usage: (in webpack.config.js)
```javascript
vue: {
transformToRequire: {
foo: 'bar'
}
}
``
will transform ``<foo bar="..."/>`` to ``<foo bar="require(...)"/>``
* fix extra semi colon
* support array config for vue.transformToRequire
* remove trailing spaces
1 parent c261e0a commit 3b1558a
1 file changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
12 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
13 | 24 | | |
14 | 25 | | |
15 | 26 | | |
16 | 27 | | |
17 | 28 | | |
18 | | - | |
19 | | - | |
| 29 | + | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
22 | 33 | | |
| |||
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
40 | 54 | | |
41 | 55 | | |
42 | 56 | | |
| |||
0 commit comments