Skip to content

Commit 981bd94

Browse files
committed
Change CSS dependencies to not hardcoded paths
Add add direct dependencies on the packages they come from, because referring to them by path like this doesn't work in a frash checkout / npm install because of how npm lays out the packages.
1 parent 083dd4e commit 981bd94

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@
5858
"babel-runtime": "^6.11.6",
5959
"bluebird": "^3.5.0",
6060
"browser-request": "^0.3.3",
61+
"draft-js": "^0.10.5",
6162
"extract-text-webpack-plugin": "^0.9.1",
6263
"favico.js": "^0.3.10",
64+
"gemini-scrollbar": "^1.5.3",
65+
"gfm.css": "^1.1.2",
66+
"highlight.js": "^9.12.0",
6367
"matrix-js-sdk": "0.10.2-rc.1",
6468
"matrix-react-sdk": "0.12.3-rc.2",
6569
"modernizr": "^3.1.0",

src/vector/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ require('babel-polyfill');
3232
// Require common CSS here; this will make webpack process it into bundle.css.
3333
// Our own CSS (which is themed) is imported via separate webpack entry points
3434
// in webpack.config.js
35-
require('matrix-react-sdk/node_modules/gemini-scrollbar/gemini-scrollbar.css');
36-
require('matrix-react-sdk/node_modules/gfm.css/gfm.css');
37-
require('matrix-react-sdk/node_modules/highlight.js/styles/github.css');
38-
require('matrix-react-sdk/node_modules/draft-js/dist/Draft.css');
35+
require('gemini-scrollbar/gemini-scrollbar.css');
36+
require('gfm.css/gfm.css');
37+
require('highlight.js/styles/github.css');
38+
require('draft-js/dist/Draft.css');
3939

4040
const rageshake = require("matrix-react-sdk/lib/rageshake/rageshake");
4141
rageshake.init().then(() => {

0 commit comments

Comments
 (0)