Code Monkey home page Code Monkey logo

sass-archive-importer's Introduction

Sass Archive Importer Plugin

The Sass Archive Importer allows you to import CSS, Sass, and SCSS files from a zip or jar file without unpacking it.

Stylesheet Syntax

This importer works with the standard filesystem based import syntax, allowing you to import from a folder or archive file with the same code. This allows you to develop against an unpacked version of a library but also compile the stylesheets against a pre-built archive file (for example, during a build process).

Installation

$ gem install --pre sass-archive-importer

Use with the Sass command line

$ sass -r sass-archive-importer -I path/to/archive.zip --watch sass_dir:css_dir

Note: several -r options can be given to the sass command line if you need to require several libraries. Several -I options can be passed if you need to import more than one zip or jar file.

Use with Compass

Add the following to your compass configuration:

require 'sass-archive-importer'
# Note: you can call add_import_path more than once.
add_import_path File.expand_path("path/to/archive.zip", File.dirname(__FILE__))
add_import_path File.expand_path("path/to/archive.jar", File.dirname(__FILE__))

Legal Stuff

Copyright 2013 LinkedIn Corp. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

sass-archive-importer's People

Contributors

chriseppstein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.