tactivos / grunt-cdn

79 stars 53 forks source link

cdn is not supporting for .js file #77

Open ds-manish opened 7 years ago

ds-manish commented 7 years ago

Code

cdn: {
      options: {
        /** @required - root URL of your CDN (may contains sub-paths as shown below) */
        cdn: 'https://cdn.domain.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', 'js': 'js' }
      },
      dist: {
        /** @required  - gets sources here, may be same as dest  */
        cwd: './dist/',
        /** @required  - puts results here with respect to relative paths  */
        dest: './dist/',
        /** @required  - files to process */
        src: ['index.html'],
      }
    },

output

cdn:html - index.html
unrecognized extension:js - inline.bundle.js
ds-manish commented 7 years ago

also .js is added in supportedTypes