Skip to content

README wrong example #139

@renatobenks-zz

Description

@renatobenks-zz

Example webpack.config.js:

I saw a example in README showing how use plugin for sourcemaps with less-loader, but I think that this example, seems to me wrong, because this:

const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
  // must be 'source-map' or 'inline-source-map'
  devtool: 'source-map',
  module: {
    rules: [{
        test: /\.less$/,
        use: ExtractTextPlugin.extract(
          fallbackLoader: 'style-loader',
          loaders: [ ]
        )
      }]
  }
}

Where call method extract on ExtractTextPlugin variable, It's passed argument with notation object javascript, but no like a object javascript, so this example, couldn't be implemented.

I did PR for fix this example, so if I'm right, this can be fixed. #140

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