Allow to extend the default Webpack configuration
koistya opened this issue · 2 comments
koistya commented
Allow to extend the default Webpack configuration
koistya commented
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.