Skip to content

Make Laravel friendly #1

@RyanNutt

Description

@RyanNutt

Make this so that it self registers with Laravel and create a config file that can be published that gives a spot to register scripts & styles and enqueue as well.

Something like this. Can register with a name and just the url, or optionally include any dependencies and the version.

return [
	'scripts' => [
		'register' => [
			'jquery' => 'https://path/to/jquery',
			'simplemde' => 'https://path/to/simplemde',
			'another' => [
				'url' => 'https://where.ever.it.is',
				'dependencies' => ['jquery', 'simplemde'],
				'version' => '1.2.3'
			]
		], 
		'enqueue' => [
			'jquery'
		]
	], 
	'styles' => [
		'register' => [
			'bootstrap' => 'https://path/to/bootstrap',
			'another' => [
				'url' => 'https://path/to/it',
				'dependencies' => ['bootstrap']
			]
		],
		'enqueue' => [
			'another'
		]
	]
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions