Skip to content

Commit

Permalink
Fix issue ColorlibHQ#1512
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Jul 8, 2017
1 parent 1ee1030 commit 4cae976
Show file tree
Hide file tree
Showing 7 changed files with 2,510 additions and 1,126 deletions.
30 changes: 29 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function (grunt) { // jshint ignore:line
less : {
// Compiles less files upon saving
files: ['build/less/*.less'],
tasks: ['less:development', 'less:production', 'notify:less']
tasks: ['less:development', 'less:production', 'replace', 'notify:less']
},
js : {
// Compile js files upon saving
Expand Down Expand Up @@ -159,6 +159,30 @@ module.exports = function (grunt) { // jshint ignore:line
}
},

// Replace image paths in AdminLTE without plugins
replace: {
withoutPlugins : {
src : ['dist/css/alt/AdminLTE-without-plugins.css'],
dest : 'dist/css/alt/AdminLTE-without-plugins.css',
replacements: [
{
from: '../img',
to : '../../img'
}
]
},
withoutPluginsMin: {
src : ['dist/css/alt/AdminLTE-without-plugins.min.css'],
dest : 'dist/css/alt/AdminLTE-without-plugins.min.css',
replacements: [
{
from: '../img',
to : '../../img'
}
]
}
},

// Build the documentation files
includes: {
build: {
Expand Down Expand Up @@ -272,11 +296,15 @@ module.exports = function (grunt) { // jshint ignore:line
grunt.loadNpmTasks('grunt-contrib-concat')
// Notify
grunt.loadNpmTasks('grunt-notify')
// Replace
grunt.loadNpmTasks('grunt-text-replace')

// Linting task
grunt.registerTask('lint', ['jshint', 'csslint', 'bootlint'])
// JS task
grunt.registerTask('js', ['concat', 'uglify'])
// CSS Task
grunt.registerTask('css', ['less:development', 'less:production', 'replace'])

// The default task (running 'grunt' in console) is 'watch'
grunt.registerTask('default', ['watch'])
Expand Down
2 changes: 1 addition & 1 deletion dist/css/alt/AdminLTE-without-plugins.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ body {
position: relative;
}
.layout-boxed {
background: url('../img/boxed-bg.jpg') repeat fixed;
background: url('../../img/boxed-bg.jpg') repeat fixed;
}
/*
* Content Wrapper - contains the main content
Expand Down
2 changes: 1 addition & 1 deletion dist/css/alt/AdminLTE-without-plugins.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 4cae976

Please sign in to comment.