Updated sample files; changed to grunt-dart-sass for compilation to reduce external dependencies

This commit is contained in:
Gregory Ballantine 2024-03-21 00:07:40 -04:00
parent 944f535532
commit da0ed0a84f
4 changed files with 1775 additions and 970 deletions

View File

@ -25,10 +25,10 @@ module.exports = function(grunt) {
}, },
// SASS compiling // SASS compiling
sass: { 'dart-sass': {
compile: { dist: {
options: { options: {
style: 'compact' style: 'compressed'
}, },
files: [{ files: [{
expand: true, expand: true,
@ -59,10 +59,10 @@ module.exports = function(grunt) {
// load plugins // load plugins
grunt.loadNpmTasks('grunt-contrib-coffee'); grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-sass'); grunt.loadNpmTasks('grunt-dart-sass');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
// do the tasks // do the tasks
grunt.registerTask('default', ['coffee', 'sass', 'watch']); grunt.registerTask('default', ['coffee', 'dart-sass', 'watch']);
}; };

View File

@ -16,14 +16,14 @@
<script> <script>
$('.mup-player').MUPlayer({ $('.mup-player').MUPlayer({
'use_default_css': true, 'use_default_css': true,
'video_width': '720px', 'video_width': '1280px',
'video_sources': [ 'video_sources': [
{ {
'link': 'http://techslides.com/demos/sample-videos/small.ogv', 'link': 'https://filesamples.com/samples/video/ogv/sample_1280x720.ogv',
'type': 'video/ogg', 'type': 'video/ogg',
}, },
{ {
'link': 'http://techslides.com/demos/sample-videos/small.mp4', 'link': 'https://filesamples.com/samples/video/mp4/sample_1280x720.mp4',
'type': 'video/mp4', 'type': 'video/mp4',
} }
] ]

2720
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,12 +8,17 @@
}, },
"author": "Gregory Ballantine", "author": "Gregory Ballantine",
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"scripts": {
"build": "grunt"
},
"devDependencies": { "devDependencies": {
"grunt": "^1.0.2", "grunt": "^1.0.2",
"grunt-contrib-coffee": "^2.0.0", "grunt-contrib-coffee": "^2.0.0",
"grunt-contrib-sass": "^1.0.0",
"grunt-contrib-watch": "^1.0.0", "grunt-contrib-watch": "^1.0.0",
"sass-lint": "^1.12.1", "sass-lint": "^1.12.1",
"time-grunt": "^1.4.0" "time-grunt": "^1.4.0"
},
"dependencies": {
"grunt-dart-sass": "^2.0.1"
} }
} }