Permalink
Browse files

Added css files and css optimization.

  • Loading branch information...
1 parent 22122c4 commit f5d2c5150de320dae539ddadfa0f88a819fb1af9 @NilsLattek committed Jul 10, 2012
View
@@ -24,6 +24,7 @@ cd $CURDIR
echo "Removing unnecessary js files from the build directory"
find $BUILDDIR/js -type f -not \( -name "main.js" -o -name "require.js" \) -delete
+find $BUILDDIR/css -type f -not \( -name "index.css" \) -delete
echo "Removing collections directory"
rm -rf $BUILDDIR/js/collections
@@ -40,6 +41,10 @@ rm -rf $BUILDDIR/js/templates
echo "Removing views directory"
rm -rf $BUILDDIR/js/views
+echo "Removing css directories"
+rm -rf $BUILDDIR/css/layout
+rm -rf $BUILDDIR/css/views
+
echo "Moving build.txt to current dir"
mv $BUILDDIR/build.txt $CURDIR
View
@@ -1,4 +1,18 @@
+css/index.css
+----------------
+css/layout/application.css
+css/views/entry.css
+css/index.css
+
+css/layout/application.css
+----------------
+css/layout/application.css
+
+css/views/entry.css
+----------------
+css/views/entry.css
+
js/libs/require/require.js
----------------
js/libs/require/require.js
@@ -0,0 +1 @@
+body {margin: 0; padding: 0;}ul {list-style-type: none; margin: 0; padding: 0;}
No changes.
View
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1; maximum-scale=1.0; user-scalable=0;">
- <!--<link rel="stylesheet" href="css/style.css">-->
+ <link rel="stylesheet" href="css/index.css">
<script data-main="js/main" src="js/libs/require/require.js"></script>
</head>
<body>
View
@@ -0,0 +1,2 @@
+@import url("layout/application.css");
+@import url("views/entry.css");
@@ -0,0 +1,4 @@
+body {
+ margin: 0;
+ padding: 0;
+}
@@ -0,0 +1,5 @@
+ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
View
No changes.
View
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1; maximum-scale=1.0; user-scalable=0;">
- <!--<link rel="stylesheet" href="css/style.css">-->
+ <link rel="stylesheet" href="css/index.css">
<script data-main="js/main" src="js/libs/require/require.js"></script>
</head>
<body>
View
@@ -5,7 +5,7 @@
mainConfigFile: 'main.js',
optimize: "uglify",
//optimize: "none",
- //optimizeCss: "standard.keepLines",
+ optimizeCss: "standard", //standard.keepLines
inlineText: true,
findNestedDependencies: true,
paths: {

0 comments on commit f5d2c51

Please sign in to comment.