Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for multiple sources and dest mappings #79

Open
harshadyeola opened this issue Feb 14, 2018 · 0 comments
Open

support for multiple sources and dest mappings #79

harshadyeola opened this issue Feb 14, 2018 · 0 comments

Comments

@harshadyeola
Copy link

This is my Gruntfile section for cdn task but this is not working.

cdn: {
  x: {
    options: {
      /** @required - root URL of your CDN (may contains sub-paths as shown below) */
      cdn: '//xyz.example.com/',
      /** @optional  - if provided both absolute and relative paths will be converted */
      flatten: true,
      /** @optional  - if provided will be added to the default supporting types */
      supportedTypes: {'phtml': 'html'}
    },
    dist: {
      /** @required  - gets sources here, may be same as dest  */
      cwd: './client/x/dist',
      /** @required  - puts results here with respect to relative paths  */
      dest: './client/y/dist',
      /** @required  - files to process */
      src: ['index.html', '*.css', '{,*/}*.html', '{,**/}*.html']
    }
  },
  y: {
    options: {
      /** @required - root URL of your CDN (may contains sub-paths as shown below) */
      cdn: '//xyz.example.com/',
      /** @optional  - if provided both absolute and relative paths will be converted */
      flatten: true,
      /** @optional  - if provided will be added to the default supporting types */
      supportedTypes: {'phtml': 'html'}
    },
    dist: {
      /** @required  - gets sources here, may be same as dest  */
      cwd: './client/y/dist',
      /** @required  - puts results here with respect to relative paths  */
      dest: './client/y/dist',
      /** @required  - files to process */
      src: ['index.html', '*.css', '{,*/}*.html', '{,**/}*.html']
    }
  }  
}
grunt.registerTask('cdnify', [
        'cdn'
    ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant