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

source map sources filenames are generated incorrectly #273

Open
Goltergaul opened this issue May 5, 2015 · 0 comments
Open

source map sources filenames are generated incorrectly #273

Goltergaul opened this issue May 5, 2015 · 0 comments

Comments

@Goltergaul
Copy link

Goltergaul commented May 5, 2015

I have the following config:

{
    options: {
            plugins: [
            new (require('less-plugin-autoprefix'))({browsers: ["> 1%"]})
        ],
        paths: [
            'bower_components'
        ]
    },
    main: {
        options: {
            sourceMap: configuration.cssSourceMap, // enable when needed, consumes much time when compiling
            sourceMapURL: 'main_dist.min.css.map',
            sourceMapRootpath: '../../'
        },
        files: {
            'fileadmin/dist/main_dist.min.css': [
                'fileadmin/less/main.less',
                'fileadmin/dist/bower.css'
            ].concat(configuration.cssFiles)
        }
    }
}

This generates a sourceMap that begins with

{"version":3,"sources":["../../fileadmin/dist/bower.css","<input css 2>"],"names":[],"mappings":"AAoHA

What ist that <input css 2>? It should read ../../fileadmin/less/main.less or something like that?

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