Skip to content

Commit 5ccd144

Browse files
authored
Added instructions for Laravel Mix.
1 parent 86b8d04 commit 5ccd144

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,23 @@ module.exports = {
3838
}
3939
```
4040

41+
### Laravel Mix
42+
43+
```js
44+
// webpack.mix.js
45+
mix.webpackConfig({
46+
module: {
47+
rules: [
48+
{
49+
// Matches all PHP or JSON files in `resources/lang` directory.
50+
test: /resources\/lang.+\.(php|json)$/,
51+
loader: 'laravel-localization-loader',
52+
}
53+
]
54+
}
55+
});
56+
```
57+
4158
## Usage
4259

4360
### Lang.js

0 commit comments

Comments
 (0)