diff --git a/.npmignore b/.npmignore index 31082ac3a..c8b074852 100644 --- a/.npmignore +++ b/.npmignore @@ -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 \ No newline at end of file +# Exclude everything but the contents of the dist directory. +**/* +!dist/** diff --git a/Gruntfile.js b/Gruntfile.js index b113d1e35..02c8425e3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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) {