xiaofuzi / rollup-plugin-less

a less rollup plugin
22 stars 24 forks source link

How to output sourcemap? #27

Open adriangodong opened 5 years ago

adriangodong commented 5 years ago

Version: 1.1.2

I can inline the sourcemap in the generated CSS if I use the following configuration:

        less({
            output: './dist/bundle.css',
            option: {
                sourceMap: {
                    sourceMapFileInline: true,
                    outputSourceFiles: true
                }
            }
        }),

If I swap sourceMapFileInline: true with outputFilename: 'bundle.css.map', the file is not output anywhere. Am I doing this right?