Skip to content

Commit

Permalink
Reconfigure gulp scripts minification
Browse files Browse the repository at this point in the history
Previous config took the source + minified files, resulting in minified
file always increasing in size.
  • Loading branch information
primozcigler committed Feb 28, 2018
1 parent a1e9026 commit 7a19b86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/js/merlin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var merlinCssFiles = './assets/css/**/*.css'; // Path to main .scss fil
var merlinStyleWatchFiles = './assets/scss/**/*.scss'; // Path to all *.scss files inside css folder and inside them.

// Scripts.
var merlinScriptSRC = './assets/js/*.js'; // Path to JS custom scripts folder.
var merlinScriptSRC = './assets/js/merlin.js'; // Path to JS custom scripts folder.
var merlinScriptDestination = './assets/js/'; // Path to place the compiled JS custom scripts file.
var merlinScriptFile = 'merlin'; // Compiled JS file name.
var merlinScriptWatchFiles = './assets/js/*.js'; // Path to all *.scss files inside css folder and inside them.
Expand Down Expand Up @@ -134,8 +134,6 @@ gulp.task('styles', function () {

gulp.task( 'scripts', function() {
gulp.src( merlinScriptSRC )
.pipe( lineec() )
.pipe( gulp.dest( merlinScriptDestination ) )
.pipe( rename( {
basename: merlinScriptFile,
suffix: '.min'
Expand Down

0 comments on commit 7a19b86

Please sign in to comment.