From c8f0bd05b48ee5ea258096640c23ac62b30decc0 Mon Sep 17 00:00:00 2001 From: Alies Lapatsin Date: Sat, 28 May 2022 00:31:17 +0300 Subject: [PATCH] #20920 Fix coding style issues --- nova.mix.js | 60 ++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/nova.mix.js b/nova.mix.js index c43ca88..9b16f84 100644 --- a/nova.mix.js +++ b/nova.mix.js @@ -1,40 +1,40 @@ -const mix = require('laravel-mix') -const webpack = require('webpack') -const path = require('path') +const mix = require('laravel-mix'); +const webpack = require('webpack'); +const path = require('path'); class NovaExtension { - name() { - return 'nova-extension' - } - - register(name) { - this.name = name - } - - webpackPlugins() { - return new webpack.ProvidePlugin({ - _: 'lodash', - Errors: 'form-backend-validation', - }) - } + name() { + return 'nova-extension'; + } - webpackConfig(webpackConfig) { - webpackConfig.externals = { - vue: 'Vue', + register(name) { + this.name = name; } - webpackConfig.resolve.alias = { - ...(webpackConfig.resolve.alias || {}), - 'laravel-nova': path.join( - __dirname, - '../../vendor/laravel/nova/resources/js/mixins/packages.js' - ), + webpackPlugins() { + return new webpack.ProvidePlugin({ + _: 'lodash', + Errors: 'form-backend-validation', + }); } - webpackConfig.output = { - uniqueName: this.name, + webpackConfig(webpackConfig) { + webpackConfig.externals = { + vue: 'Vue', + }; + + webpackConfig.resolve.alias = { + ...(webpackConfig.resolve.alias || {}), + 'laravel-nova': path.join( + __dirname, + '../../vendor/laravel/nova/resources/js/mixins/packages.js' + ), + }; + + webpackConfig.output = { + uniqueName: this.name, + }; } - } } -mix.extend('nova', new NovaExtension()) +mix.extend('nova', new NovaExtension());