0.1.4 • Published 10 years ago

usemin-patterns v0.1.4

Weekly downloads
95
License
-
Repository
-
Last release
10 years ago

usemin-patterns

Ready-to-use patterns for applying grunt-usemin on Jade and other templating languages

Install

Get it from npm.

npm i --save-dev grunt-usemin usemin-patterns

Use matchdep to load your Grunt plugins.

npm i --save-dev matchdep

Then, rather than all the calls to grunt.loadNpmTask(), use this one liner.

require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

Usage

usemin: {
    jade: 'src/views/**/*.jade',
    options: {
        assetsDirs: ['public'],
        patterns: {
            jade: require('usemin-patterns').jade
        }
    }
}

Patterns

jade: Same as the default patterns provided for html files, but available to jade templates!

js: Patterns to match local (no protocol) images in JavaScript files.

License

MIT

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago