Skip to content

Commit ae37c54

Browse files
half2mekazupon
authored andcommitted
Add support for webpack without vue-cli (#22)
1 parent fd81a88 commit ae37c54

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ new Vue({
7373

7474
### Webpack Config
7575

76-
`vue-loader` (v15 later):
76+
`vue-loader` (v15 or later):
7777

7878
```javascript
7979
// for vue.config.js (Vue CLI)
@@ -89,6 +89,22 @@ module.exports = {
8989
}
9090
```
9191

92+
`vue-loader` (v15 or later):
93+
94+
```javascript
95+
// for webpack.config.js (Without Vue CLI)
96+
module.exports = {
97+
module: {
98+
rules: [
99+
{
100+
resourceQuery: /blockType=i18n/,
101+
loader: '@kazupon/vue-i18n-loader',
102+
},
103+
]
104+
}
105+
}
106+
```
107+
92108
`vue-loader` (~v14.x):
93109

94110
```javascript

0 commit comments

Comments
 (0)