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

View File

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

2566
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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