Skip to content

Commit 04f9e7d

Browse files
committed
Use dependency styles from npm
1 parent c3b0ff0 commit 04f9e7d

File tree

1 file changed

+9
-51
lines changed

1 file changed

+9
-51
lines changed

build/paths/vendor.js

Lines changed: 9 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,6 @@ var bowerDir = config.bowerDir;
99

1010

1111

12-
/*******************************************************************************
13-
14-
...Few words about vendor files
15-
16-
For not including all scripts manually we use plugin
17-
called main-bower-files.
18-
19-
It returns glob of files based on "main" field in vendor packages "bower.json".
20-
Orders of files will be as per our bower.json, so if you have some libraries
21-
that should be loaded on first, just move them upwards in project "bower.json".
22-
23-
If any of files that you want to access is not listed in vendor package, you can
24-
define files for that package manually in bower.json "overrides" field.
25-
26-
For more docs visit.
27-
https://github.com/ck86/main-bower-files#main-bower-files
28-
29-
If for any reasons you don't like this approach, and want list your files
30-
manually, you can just pass manual glob string or array to "src" option
31-
32-
eg.
33-
34-
export.scripts: [
35-
bowerDir + "jquery/dist/jquery.js",
36-
bowerDir + "angular/jquery.js",
37-
]
38-
39-
********************************************************************************/
40-
41-
42-
4312
/***********************************************
4413
* Vendor script files
4514
************************************************/
@@ -79,30 +48,19 @@ var bowerDir = config.bowerDir;
7948
************************************************/
8049

8150
var npmStyles = [
51+
config.npmDir + '/animate.css/animate.css',
52+
config.npmDir + '/font-awesome/css/font-awesome.css',
53+
config.npmDir + '/jqvmap/dist/jqvmap.css',
54+
config.npmDir + '/metismenu/dist/metisMenu.css',
55+
config.npmDir + '/nprogress/nprogress.css',
56+
config.npmDir + '/dropzone/dist/dropzone.css',
8257
config.npmDir + '/quill/dist/quill.core.css',
8358
config.npmDir + '/quill/dist/quill.snow.css',
59+
config.npmDir + '/morris.js/morris.css',
60+
config.npmDir + '/bootstrap/dist/css/bootstrap.css',
8461
];
8562

86-
var bowerStyles = mainBowerFiles({
87-
filter: [
88-
'**/*.css',
89-
'!**/*.min.css'
90-
],
91-
paths: rootDir
92-
});
93-
94-
bowerStyles = bowerStyles.filter((item) => {
95-
return !item.includes('quill.');
96-
});
97-
98-
// bowerStyles.splice(0, npmStyles.length);
99-
100-
var styles = [].concat(npmStyles, bowerStyles);
101-
102-
103-
console.log(styles);
104-
105-
exports.styles = styles;
63+
exports.styles = npmStyles;
10664

10765

10866
/***********************************************

0 commit comments

Comments
 (0)