Skip to content

Commit

Permalink
#20920 Fix coding style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed May 27, 2022
1 parent 90c15fe commit c8f0bd0
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions nova.mix.js
Original file line number Diff line number Diff line change
@@ -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());

0 comments on commit c8f0bd0

Please sign in to comment.