All Projects → lackhurt → grunt-css-import

lackhurt / grunt-css-import

Licence: MIT license
Grunt task to concat css file by @import.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to grunt-css-import

get-css-data
A micro-library for collecting stylesheet data from link and style nodes
Stars: ✭ 29 (+123.08%)
Mutual labels:  import
importtool
General data import tool for IgorPro
Stars: ✭ 19 (+46.15%)
Mutual labels:  import
grunt-angular-combine
Grunt task for combining AngularJS partials into a single HTML file.
Stars: ✭ 16 (+23.08%)
Mutual labels:  gruntfile
migration
TYPO3 Migration Framework for every kind of migration/imports from CLI (e.g. Templavoila to Gridelements, tt_news to news, etc...)
Stars: ✭ 52 (+300%)
Mutual labels:  import
tradeship
Automatically imports missing JavaScript dependencies and removes unused ones.
Stars: ✭ 42 (+223.08%)
Mutual labels:  import
cassandra-exporter
Simple Tool to Export / Import Cassandra Tables into JSON
Stars: ✭ 44 (+238.46%)
Mutual labels:  import
Dataset Serialize
JSON to DataSet and DataSet to JSON converter for Delphi and Lazarus (FPC)
Stars: ✭ 213 (+1538.46%)
Mutual labels:  import
connect-backup
A tool to backup and restore AWS Connect, with some useful other utilities too
Stars: ✭ 19 (+46.15%)
Mutual labels:  import
vim-nayvy
🌑 Enriching python coding in Vim 🐍
Stars: ✭ 66 (+407.69%)
Mutual labels:  import
restrict-imports-enforcer-rule
Maven enforcer rule that restricts usage of unwanted imports.
Stars: ✭ 59 (+353.85%)
Mutual labels:  import
open2fa
Two-factor authentication app with import/export for iOS and macOS. All codes encrypted with AES 256. FaceID & TouchID support included. Written with love in SwiftUI ❤️
Stars: ✭ 24 (+84.62%)
Mutual labels:  import
buttercup-importer
🎣 3rd-party archive importer for Buttercup
Stars: ✭ 39 (+200%)
Mutual labels:  import
graphql-cli-load
A graphql-cli data import plugin to call mutations with data from JSON/CSV files
Stars: ✭ 63 (+384.62%)
Mutual labels:  import
taskrunner.nvim
🏃 Runs Gulp/Gruntfiles in terminal splits
Stars: ✭ 13 (+0%)
Mutual labels:  gruntfile
craft3-blockonomicon
Manage matrix fields on a per-block basis. Bundle presentation with blocks. Render entire matrices with a single line.
Stars: ✭ 32 (+146.15%)
Mutual labels:  import
Portphp
Data import/export framework for PHP
Stars: ✭ 225 (+1630.77%)
Mutual labels:  import
webpack-async-chunk-names-plugin
No description or website provided.
Stars: ✭ 12 (-7.69%)
Mutual labels:  import
format-imports-vscode
Format imports and exports for JavaScript and TypeScript in VS Code.
Stars: ✭ 60 (+361.54%)
Mutual labels:  import
blender-terrain
Terrain import is now a part of the blender-osm addon. Get it for free at https://gumroad.com/l/blender-osm
Stars: ✭ 28 (+115.38%)
Mutual labels:  import
commercetools-project-sync
Dockerized CLI application which allows to automatically sync different resources between commercetools projects
Stars: ✭ 26 (+100%)
Mutual labels:  import

css-import

Concat the css file by @import. The relative url of the background image and font face will be changed automatically.

Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-css-import --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-css-import');

The "grunt-css_import" task

Overview

In your project's Gruntfile, add a section named css_import to the data object passed into grunt.initConfig().

grunt.initConfig({
    css_import: {
        your_target: {
            options: {

            },
            files: {
                'tmp/simple_concat/all.css': ['test/fixtures/style/all.css']
            }
        }
    }
}
});

Options

Default options is OK!

Usage Examples

In this example, the default options are used to do something with whatever. So if the all_modules.css file has the content

@import "module_a/a.css";
@import "module_b/b.css";
@import "../lib/lib.css";

ul {
   margin: 0;
}

And dest file is dest/all.css

grunt.initConfig({
  css_import: {
    files: {
      'dest/all.css': ['src/module/all_modules.css'],
    },
  },
});

Then dest/all.css

	/** module_a/a.css's content **/
	/** module_b/b.css's content **/
	/** ../lib/lib.css's content **/

	ul {
	   margin: 0;
	}

The relative url of the background image and font face will be changed automatically.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].