grunt-wiresrc

0.1.3 • Public • Published

This is a dirty fork of grunt-wiredep to publish private src in index.html

In your HTML file :

<!-- src:js -->
<script src="/app/bar.js"></script>
<script src="/app/foo.js"></script>
<!-- endsrc -->

<!-- src:css -->
<link rel="stylesheet" href="/app/bar.css" />
<link rel="stylesheet" href="/app/foo.css" />
<!-- endsrc -->

In your Grunt File :

/*
   wiresrc config
*/
srcInstall: {
    app: {
        src: ['<%= config.app %>/index.html'],
        scope: {
            js: {
                includes: [
                    'common/**/*.js',
                    'app/**/*.js'
                ],
                // excludes: [
                //     'app/app.js'
                // ]
            },
            css: {
                includes: [
                    'common/**/*.css',
                    'app/**/*.css'
                ],
            }
        }
    }
},

Package Sidebar

Install

npm i grunt-wiresrc

Weekly Downloads

0

Version

0.1.3

License

ISC

Last publish

Collaborators

  • evaisse