jhen0409 / react-chrome-extension-boilerplate

Boilerplate for Chrome Extension React.js project
MIT License
2.14k stars 388 forks source link

Add bootstrap-loader problem #45

Open manhhailua opened 8 years ago

manhhailua commented 8 years ago

I'm trying to add bootstrap to my chrome extension but I don't know how to integrate the "entry" of bootstrap loader to existent "entry" at "webpack/dev.config.js" and "webpack/prod.config.js".

jhen0409 commented 8 years ago

For example, you can add it to todoapp entry:

  entry: {
    todoapp: [customPath, hotScript, 'bootstrap-loader', path.join(__dirname, '../chrome/extension/todoapp')],
manhhailua commented 8 years ago

I'm using:

import 'expose?$!expose?jQuery!jquery';
import 'bootstrap-loader';

at /app/containers/Root.js and everything is working nicely. Do this way make any differences?