1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-13 10:32:26 +02:00

Use .npmignore to package a smaller subset of videojs for distribution. Make sure to include the video-js.less file for the designer to use.

This commit is contained in:
Lee Whitaker 2014-03-04 09:50:58 -05:00
parent 2e26703162
commit cc5e515360
2 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,3 @@
# .npmignore needed so dist dir won't be ignored
# https://npmjs.org/doc/developers.html#Keeping-files-out-of-your-package
# Exclude everything but the contents of the dist directory.
**/*
!dist/**

View File

@ -314,6 +314,8 @@ module.exports = function(grunt) {
grunt.file.copy('node_modules/videojs-swf/dist/video-js.swf', 'dist/video-js/video-js.swf');
grunt.file.copy('build/demo-files/demo.html', 'dist/video-js/demo.html');
grunt.file.copy('build/demo-files/demo.captions.vtt', 'dist/video-js/demo.captions.vtt');
grunt.file.copy('src/css/video-js.less', 'dist/video-js/video-js.less');
// Copy over font files
grunt.file.recurse('build/files/font', function(absdir, rootdir, subdir, filename) {