From bd54b4112ea78d6574e09da2efaf3c0e776c01de Mon Sep 17 00:00:00 2001 From: Gary Katsevman Date: Mon, 8 Aug 2022 15:16:51 -0400 Subject: [PATCH] fix: update icons import path for sass (#7867) This updates the path to remove node_modules as some tools expect the module name to be first. This is particularly important for PnP tools as local node_modules may not have the module. Fixes #7208, fixes #7863 BREAKING CHANGE: update icons path in sass to remove node_modules --- package.json | 4 ++-- src/css/video-js.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4c062e21bf..a3ec82d2c4 100644 --- a/package.json +++ b/package.json @@ -35,9 +35,9 @@ "copy:examples": "shx cp -R docs/examples dist/", "build:js": "rollup -c", "build:css": "npm-run-all build:css:*", - "build:css:cdn": "sass --load-path='./' --no-source-map src/css/vjs-cdn.scss dist/alt/video-js-cdn.css", + "build:css:cdn": "sass --load-path='./' --load-path='./node_modules/' --no-source-map src/css/vjs-cdn.scss dist/alt/video-js-cdn.css", "postbuild:css:cdn": "postcss --verbose --config postcss.config.js -d dist/alt dist/alt/video-js-cdn.css", - "build:css:default": "sass --load-path='./' --no-source-map src/css/vjs.scss dist/video-js.css", + "build:css:default": "sass --load-path='./' --load-path='./node_modules/' --no-source-map src/css/vjs.scss dist/video-js.css", "postbuild:css:default": "postcss --verbose --config postcss.config.js -d dist/ dist/video-js.css", "prebuild:lang": "npm-run-all -s prebuild:lang:*", "prebuild:lang:chinese-s": "shx cp lang/zh-CN.json lang/zh-Hans.json", diff --git a/src/css/video-js.scss b/src/css/video-js.scss index 1fd861371c..fad65b513f 100644 --- a/src/css/video-js.scss +++ b/src/css/video-js.scss @@ -2,7 +2,7 @@ @import "private-variables"; @import "utilities"; -@import "node_modules/videojs-font/scss/icons"; +@import "videojs-font/scss/icons"; @import "components/layout"; @import "components/big-play";