Skip to content

Commit

Permalink
Merge CSS files
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Mar 5, 2018
1 parent 2ed22f3 commit d6ba61b
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 7 deletions.
18 changes: 16 additions & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
module.exports = function(grunt) {
grunt.initConfig({

sass: {
options: {
outputStyle: 'compressed',
includePaths: [
'styles',
'scripts'
]
},
dist: {
files: {
'styles/merged.css': 'styles/merged.scss'
}
}
},
uglify: {
options: {
compress: {
Expand Down Expand Up @@ -45,7 +58,8 @@ module.exports = function(grunt) {

// load plugins
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sass');

// default tasks
grunt.registerTask('default', ['uglify']);
grunt.registerTask('default', ['uglify', 'sass']);
};
6 changes: 1 addition & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Rich FileManager</title>
<link rel="stylesheet" type="text/css" href="styles/reset.css" />
<link rel="stylesheet" type="text/css" href="styles/filemanager.css" />
<link rel="stylesheet" type="text/css" href="scripts/jquery.contextmenu/dist/jquery.contextMenu.min.css" />
<link rel="stylesheet" type="text/css" href="scripts/custom-scrollbar-plugin/jquery.mCustomScrollbar.min.css" />
<link rel="stylesheet" type="text/css" href="scripts/alertify.js/dist/css/alertify.css">
<link rel="stylesheet" type="text/css" href="styles/merged.css" />

<style type="text/css">
.fm-container .fm-loading-wrap {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-cssmin": "^1.0.1",
"grunt-contrib-uglify": "^1.0.1",
"grunt-sass": "^2.1.0",
"npm-run-all": "^4.0.2",
"uglify-js": "^3.0.27"
},
Expand Down
15 changes: 15 additions & 0 deletions styles/merged.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions styles/merged.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "reset";
@import "filemanager";
@import "jquery.contextmenu/src/sass/jquery.contextMenu.scss";
@import "custom-scrollbar-plugin/jquery.mCustomScrollbar";
@import "alertify.js/src/sass/alertify.scss";

0 comments on commit d6ba61b

Please sign in to comment.