Skip to content

Commit 0abc390

Browse files
docs: Replace WebpackShellPlugin with WebpackShellPluginNext (#183)
Newer webpack versions aren't compatible with webpack-shell-plugin (which is extremely outdated). webpack-shell-plugin-next does the exact same thing but is compatible with Webpack 4 and 5.
1 parent 69cecb4 commit 0abc390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,18 @@ elixir(function(mix) {
135135

136136
### Using [Laravel's Mix](https://laravel.com/docs/5.4/mix) with Laravel 5.4+ (optional)
137137

138-
Add "[webpack-shell-plugin](https://www.npmjs.com/package/webpack-shell-plugin)" to package.json's "devDependencies" section.
138+
Add "[webpack-shell-plugin-next](https://www.npmjs.com/package/webpack-shell-plugin-next)" to package.json's "devDependencies" section.
139139

140140
Add the following to webpack.mix.js:
141141

142142
```js
143-
const WebpackShellPlugin = require('webpack-shell-plugin');
143+
const WebpackShellPluginNext = require('webpack-shell-plugin-next');
144144

145145
// Add shell command plugin configured to create JavaScript language file
146146
mix.webpackConfig({
147147
plugins:
148148
[
149-
new WebpackShellPlugin({onBuildStart:['php artisan lang:js --quiet'], onBuildEnd:[]})
149+
new WebpackShellPluginNext({onBuildStart:['php artisan lang:js --quiet'], onBuildEnd:[]})
150150
]
151151
});
152152
```

0 commit comments

Comments
 (0)