Просмотр исходного кода

import bootstrap font awseome via less not html

Henry Oswald 10 лет назад
Родитель
Сommit
94d760e32d

+ 1 - 1
services/web/Gruntfile.coffee

@@ -26,7 +26,7 @@ module.exports = (grunt) ->
 			run:
 				command:"node app.js | ./node_modules/logger-sharelatex/node_modules/bunyan/bin/bunyan --color"
 			cssmin:
-				command:"node_modules/clean-css/bin/cleancss -o public/stylesheets/style.css public/stylesheets/style.css"
+				command:"node_modules/clean-css/bin/cleancss --s0 -o public/stylesheets/style.css public/stylesheets/style.css"
 
 
 		watch:

+ 0 - 1
services/web/app/views/layout.jade

@@ -19,7 +19,6 @@ html(itemscope, itemtype='http://schema.org/Product')
 
 		link(rel="icon", href="/favicon.ico")
 		link(rel='stylesheet', href='/stylesheets/style.css?fingerprint='+fingerprint('/stylesheets/style.css'))
-		link(href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css",rel="stylesheet")
 
 		if settings.i18n.subdomainLang
 			each subdomainDetails in settings.i18n.subdomainLang

+ 2 - 0
services/web/public/stylesheets/style.less

@@ -1,5 +1,7 @@
 // Core variables and mixins
 @import "core/variables.less";
+@import url(//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);
+
 @import "core/mixins.less";
 
 // Reset