[GH-ISSUE #753] Assets should be minified #680

Closed
opened 2026-02-27 11:12:59 +03:00 by kerem · 2 comments
Owner

Originally created by @eberkund on GitHub (Jun 27, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/753

To decrease server requests and bandwidth all of the CSS and JS assets should be concatenated and minified.

This can be automated using Grunt or Gulp.

Originally created by @eberkund on GitHub (Jun 27, 2015). Original GitHub issue: https://github.com/modoboa/modoboa/issues/753 To decrease server requests and bandwidth all of the CSS and JS assets should be concatenated and minified. This can be automated using Grunt or Gulp.
kerem 2026-02-27 11:12:59 +03:00
Author
Owner

@tonioo commented on GitHub (Jun 28, 2015):

Javascript dependencies are manged using bower so the minified versions are already there. But it is possible I do not include them in the templates...

<!-- gh-comment-id:116228437 --> @tonioo commented on GitHub (Jun 28, 2015): Javascript dependencies are manged using bower so the minified versions are already there. But it is possible I do not include them in the templates...
Author
Owner

@eberkund commented on GitHub (Jun 28, 2015):

True, well if you are already using bower it shouldn't be much additional effort. I use Grunt on all my projects and this snippet works nicely for combining everything in to one minified file.

    concat: {
        dist: {
            src: [
                'assets/scripts/_source/jquery.*.js',
                'assets/scripts/_source/*.js'
            ],
            dest: 'assets/scripts/combined.js'
        }
    },

    uglify: {
        build: {
            src: 'assets/scripts/combined.js',
            dest: 'assets/scripts/combined.min.js'
        }
    },
<!-- gh-comment-id:116295981 --> @eberkund commented on GitHub (Jun 28, 2015): True, well if you are already using bower it shouldn't be much additional effort. I use Grunt on all my projects and this snippet works nicely for combining everything in to one minified file. ``` concat: { dist: { src: [ 'assets/scripts/_source/jquery.*.js', 'assets/scripts/_source/*.js' ], dest: 'assets/scripts/combined.js' } }, uglify: { build: { src: 'assets/scripts/combined.js', dest: 'assets/scripts/combined.min.js' } }, ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#680
No description provided.