Skip to content

Cannot use extract-text-webpack-plugin. #28

@sweetnewyork

Description

@sweetnewyork

ERROR in ./~/bootstrap-webpack/index.loader.js!./resources/bootstrap.config.js

Module not found: Error: Can't resolve '[object Object],[object Object],[object Object],[object Object],[object Object]'

with the configuration in bootstrap.config.js.

module.exports = {
  styleLoader: require('extract-text-webpack-plugin').extract({fallback:'style-loader',use:'css-loader!postcss-loader!less-loader'}),
  scripts: {
    ...
  },
  styles: {
    ...
  }
};

I've already installed the extract-text-webpack-plugin, and i notice that, without the plugin, the configuraion could be working:

module.exports = {
  styleLoader: 'style-loader!-loader!less-loader',
  scripts: {
    ...
  },
  styles: {
    ...
  }
};

I notice that the api of the extract-text-webpack-plugin changed. That's why the configuration not working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions