Giter Site home page Giter Site logo

grunt-myth's Introduction

Deprecated

Deprecated as the Myth project is no longer maintained.


grunt-myth Build Status

Myth - Postprocessor that polyfills CSS

Issues with the output should be reported on the Myth issue tracker.

Install

$ npm install --save-dev grunt-myth

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	myth: {
		options: {
			sourcemap: true
		},
		dist: {
			files: {
				'dist/app.css': 'src/app.css'
			}
		}
	}
});

grunt.registerTask('default', ['myth']);

Options

sourcemap

Type: boolean
Default: false

Embed a Source Map.

features

Type: object
Default: {}

Disable specific Myth features.

License

MIT © Sindre Sorhus

grunt-myth's People

Contributors

losingkeys avatar sindresorhus avatar zachleat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grunt-myth's Issues

source maps

probably using a modified example (of the original) from the Myth github page:

var myth = require('myth');
var rework = require('rework');
var fs = require('fs');

var css = fs.readFileSync('index.css', 'utf8');
var converted = rework(css)
  .use(myth())
  .toString({ sourcemap: true });

fs.writeFileSync('converted.css', converted);

Why require grunt 0.4.0?

Hello, I have a dependency issue when installing this plugin. Looking at how npm does semver stuff, it looks like ^0.4.0 means 0.4.0, because there's no major version. Does this plugin require exactly version 0.4.0 of grunt, or could it be ~0.4.0 (which I think would allow 0.4.1/0.4.2 and maybe more)?

Remove myth dependency?

Does it make sense to remove the myth dependency and rather rely on the global install? I just ran into an issue and it took me a while to recognize, that I actually don't use my up-to-date version of Myth which is installed globally.

Maybe this makes no sense. I am still trying to figure out, what to install globally. Currently it's bower, grunt-cli and myth, basically all plugins I want to use from cli.

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.