kriasoft / react-app

Create React App with server-side code support
https://t.me/reactapp
MIT License
613 stars 84 forks source link

Allow to extend the default Webpack configuration #3

Open koistya opened 8 years ago

koistya commented 8 years ago

FYI, the latest preview version allows to customize the default Webpack configuration by putting config.js file in the root of your project tree with the content similar to this:

config.js
module.exports = {
  // Extend the default Webpack configuration
  webpack: config => {
    // For example, add one more entry point
    config.entry.push('./server.js');
    // Or, add one more loader
    config.module.loaders.push(...);
  },
};

For more information about what options are available in Webpack config visit https://webpack.github.io/docs/configuration.html

You can install the preview version by running:

$ npm install react-app@preview --save
$ npm install react-app-tools@preview --save-dev

The final version is on its way. Needs some more testing.

chiqui3d commented 8 years ago

Hello @koistya , first congratulations for this great contribution. And now I wonder if the master branch has been updated for edit webpack, or if there is another way to add sass to my project, I want to use bootstrap and my own modules made in sass.