Concat css
This commit is contained in:
parent
6b6a1172f9
commit
92de7cb8ef
@ -7,6 +7,7 @@ var minifyCSS = require('gulp-minify-css');
|
|||||||
var autoprefixer = require('gulp-autoprefixer');
|
var autoprefixer = require('gulp-autoprefixer');
|
||||||
var uglify = require('gulp-uglify');
|
var uglify = require('gulp-uglify');
|
||||||
var gzip = require('gulp-gzip');
|
var gzip = require('gulp-gzip');
|
||||||
|
var concat = require('gulp-concat');
|
||||||
var browserify = require('browserify');
|
var browserify = require('browserify');
|
||||||
var source = require('vinyl-source-stream');
|
var source = require('vinyl-source-stream');
|
||||||
var streamify = require('gulp-streamify');
|
var streamify = require('gulp-streamify');
|
||||||
@ -29,10 +30,11 @@ gulp.task('html', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('css', function() {
|
gulp.task('css', function() {
|
||||||
gulp.src('src/css/*.css')
|
gulp.src(['src/css/fontello.css', 'src/css/style.css'])
|
||||||
|
.pipe(concat('bundle.css'))
|
||||||
.pipe(autoprefixer())
|
.pipe(autoprefixer())
|
||||||
.pipe(minifyCSS())
|
.pipe(minifyCSS())
|
||||||
.pipe(gulp.dest('dist/css'));
|
.pipe(gulp.dest('dist'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('js', function() {
|
gulp.task('js', function() {
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
"browserify": "~8.0.3",
|
"browserify": "~8.0.3",
|
||||||
"gulp-autoprefixer": "~2.0.0",
|
"gulp-autoprefixer": "~2.0.0",
|
||||||
"gulp-gzip": "0.0.8",
|
"gulp-gzip": "0.0.8",
|
||||||
"babelify": "~5.0.3"
|
"babelify": "~5.0.3",
|
||||||
|
"gulp-concat": "~2.5.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash": "3.2.0",
|
"lodash": "3.2.0",
|
||||||
|
10
client/src/css/fontello.css
vendored
10
client/src/css/fontello.css
vendored
@ -1,10 +1,10 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'fontello';
|
font-family: 'fontello';
|
||||||
src: url('../font/fontello.eot?73444496');
|
src: url('font/fontello.eot?73444496');
|
||||||
src: url('../font/fontello.eot?73444496#iefix') format('embedded-opentype'),
|
src: url('font/fontello.eot?73444496#iefix') format('embedded-opentype'),
|
||||||
url('../font/fontello.woff?73444496') format('woff'),
|
url('font/fontello.woff?73444496') format('woff'),
|
||||||
url('../font/fontello.ttf?73444496') format('truetype'),
|
url('font/fontello.ttf?73444496') format('truetype'),
|
||||||
url('../font/fontello.svg?73444496#fontello') format('svg');
|
url('font/fontello.svg?73444496#fontello') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
<title>IRC</title>
|
<title>IRC</title>
|
||||||
|
|
||||||
<link href="//fonts.googleapis.com/css?family=Montserrat|Droid+Sans+Mono" rel="stylesheet">
|
<link href="//fonts.googleapis.com/css?family=Montserrat|Droid+Sans+Mono" rel="stylesheet">
|
||||||
<link href="css/fontello.css" rel="stylesheet">
|
<link href="bundle.css" rel="stylesheet">
|
||||||
<link href="css/style.css" rel="stylesheet">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="bundle.js"></script>
|
<script src="bundle.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -43,8 +43,7 @@ func Run(port int) {
|
|||||||
|
|
||||||
files = []File{
|
files = []File{
|
||||||
File{"/bundle.js", "text/javascript"},
|
File{"/bundle.js", "text/javascript"},
|
||||||
File{"/css/style.css", "text/css"},
|
File{"/bundle.css", "text/css"},
|
||||||
File{"/css/fontello.css", "text/css"},
|
|
||||||
File{"/font/fontello.eot", "application/vnd.ms-fontobject"},
|
File{"/font/fontello.eot", "application/vnd.ms-fontobject"},
|
||||||
File{"/font/fontello.svg", "image/svg+xml"},
|
File{"/font/fontello.svg", "image/svg+xml"},
|
||||||
File{"/font/fontello.ttf", "application/x-font-ttf"},
|
File{"/font/fontello.ttf", "application/x-font-ttf"},
|
||||||
|
Loading…
Reference in New Issue
Block a user