Skip to content

Commit c8f0bd0

Browse files
committed
#20920 Fix coding style issues
1 parent 90c15fe commit c8f0bd0

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

nova.mix.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
const mix = require('laravel-mix')
2-
const webpack = require('webpack')
3-
const path = require('path')
1+
const mix = require('laravel-mix');
2+
const webpack = require('webpack');
3+
const path = require('path');
44

55
class NovaExtension {
6-
name() {
7-
return 'nova-extension'
8-
}
9-
10-
register(name) {
11-
this.name = name
12-
}
13-
14-
webpackPlugins() {
15-
return new webpack.ProvidePlugin({
16-
_: 'lodash',
17-
Errors: 'form-backend-validation',
18-
})
19-
}
6+
name() {
7+
return 'nova-extension';
8+
}
209

21-
webpackConfig(webpackConfig) {
22-
webpackConfig.externals = {
23-
vue: 'Vue',
10+
register(name) {
11+
this.name = name;
2412
}
2513

26-
webpackConfig.resolve.alias = {
27-
...(webpackConfig.resolve.alias || {}),
28-
'laravel-nova': path.join(
29-
__dirname,
30-
'../../vendor/laravel/nova/resources/js/mixins/packages.js'
31-
),
14+
webpackPlugins() {
15+
return new webpack.ProvidePlugin({
16+
_: 'lodash',
17+
Errors: 'form-backend-validation',
18+
});
3219
}
3320

34-
webpackConfig.output = {
35-
uniqueName: this.name,
21+
webpackConfig(webpackConfig) {
22+
webpackConfig.externals = {
23+
vue: 'Vue',
24+
};
25+
26+
webpackConfig.resolve.alias = {
27+
...(webpackConfig.resolve.alias || {}),
28+
'laravel-nova': path.join(
29+
__dirname,
30+
'../../vendor/laravel/nova/resources/js/mixins/packages.js'
31+
),
32+
};
33+
34+
webpackConfig.output = {
35+
uniqueName: this.name,
36+
};
3637
}
37-
}
3838
}
3939

40-
mix.extend('nova', new NovaExtension())
40+
mix.extend('nova', new NovaExtension());

0 commit comments

Comments
 (0)