PHP Classes

File: nova.mix.js

Recommend this page to a friend!
  Classes of Naif Alshaye   PHP ChatGPT API Seeder   nova.mix.js   Download  
File: nova.mix.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP ChatGPT API Seeder
Generate constant seed data using ChatGPT API
Author: By
Last change:
Date: 10 months ago
Size: 630 bytes
 

Contents

Class file image Download
const mix = require('laravel-mix') const webpack = require('webpack') const path = require('path') class NovaExtension { name() { return 'nova-extension' } register(name) { this.name = 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())