bline / bootstrap-webpack

development has moved to https://github.com/gowravshekar/bootstrap-webpack
MIT License
90 stars 54 forks source link

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

Open sweetnewyork opened 7 years ago

sweetnewyork commented 7 years ago

1. 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: {
    ...
  }
};

2. 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: {
    ...
  }
};

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

liangklfang commented 7 years ago

I have the same issue here :+1:

ModuleNotFoundError: Module not found: Error: Can't resolve '[object Object]' in 'C:\Users\Administrator\Desktop\react-universal-bucket\src\theme'

bline commented 7 years ago

I'm currently not using this code and am very busy with a new job. If someone else would like to take over and maintain it that would be great. Otherwise please fork it for you organization.

On Sun, May 14, 2017 at 9:06 PM, liangklfang notifications@github.com wrote:

I have the same issue here 👍

ModuleNotFoundError: Module not found: Error: Can't resolve '[object Object]' in 'C:\Users\Administrator\Desktop\react-universal- bucket\src\theme'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bline/bootstrap-webpack/issues/28#issuecomment-301365843, or mute the thread https://github.com/notifications/unsubscribe-auth/AASHp0f9kf66V7tuYb7UKqcHad7zfGkDks5r58ErgaJpZM4M4B1a .