8000 getting `cannot read property 'start' of undefined` when running grunt-cdn · Issue #70 · tactivos/grunt-cdn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.
This repository was archived by the owner on May 23, 2025. It is now read-only.
getting cannot read property 'start' of undefined when running grunt-cdn #70
Open
@tconroy

Description

@tconroy

Hey,

I may not have the plugin configured properly, so coming here for some advice.

My app directory is structured like so:

project/
    app/
    dist/
        scripts/
            - main.js
        styles/
            - main.css
        - index.html

I need to have the reference to dist/scripts/main.js & dist/styles/main.css inside of dist/index.html point to a CDN URL.

Here is my grunt-cdn config:

        cdn: {
            options: {
                cdn: '//www.my-cdn-url.com/',
                flatten: true,
                supportedTypes: {'js':'js'}
            },
            distCSS: {
                cwd: './dist/styles/',
                dest: './dist/styles/',
                src: ['./dist/index.html', '*.*.css']
            },
            distJS: {
                cwd: './dist/scripts/',
                dest: './dist/scripts/',
                src: ['./dist/index.html', '*.*.js']
            }
        }

css inside dist/index.html should point to: //www.my-cdn-url.com/styles/main.css
js inside dist/index.html should point to: //www.my-cdn-url.com/scripts/main.js

when I run the above I get the error: Warning: Cannot read property 'start' of undefined Use --force to continue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0