Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
rename minified css/js to skip cloudflare auto-minify
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorris committed Oct 26, 2017
1 parent 87a1b2c commit 7fc3aeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const cssnano = require('cssnano');
const uglify = require('gulp-uglify');
const concat = require('gulp-concat');
const { prepend } = require('gulp-insert');
const rename = require('gulp-rename');
const sourcemaps = require('gulp-sourcemaps');
const imagemin = require('gulp-imagemin');
const { createInterface } = require('readline');
Expand Down Expand Up @@ -81,6 +82,7 @@ gulp.task('css', () => {
flexbugs,
cssnano
]),
rename({ extname: '.min.css' }),
sourcemaps.write('.'),
gulp.dest('dist')
]);
Expand All @@ -101,10 +103,10 @@ gulp.task('scripts', ['license'], () => {
return pump([
gulp.src(paths.scripts),
sourcemaps.init(),
uglify(),
concat('main.js'),
uglify(),
prepend(licenseComment),
rename({ extname: '.min.js' }),
sourcemaps.write('.'),
gulp.dest('dist/iframe/js')
]);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"gulp-imagemin": "^3.4.0",
"gulp-insert": "^0.5.0",
"gulp-postcss": "^7.0.0",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.6.1",
"gulp-sourcemaps": "^2.6.1",
"gulp-uglify": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/iframe/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700|Open+Sans:400,700" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style.min.css">
</head>

<body>
Expand Down Expand Up @@ -114,7 +114,7 @@ <h3>Done calling? Help drive more calls!</h3>
</div>

<!-- JavaScript -->
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>

<!-- Senty Error Reporting -->
<script src="https://cdn.ravenjs.com/3.16.1/raven.min.js" crossorigin="anonymous"></script>
Expand Down

0 comments on commit 7fc3aeb

Please sign in to comment.