Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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