react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

How to split app.js into some independent js files? #333

Open ChangeHow opened 7 years ago

ChangeHow commented 7 years ago

by use CommonChunkPlugin and multientry,by npm dist i can split app.js into mycomponet.js and common.js(include vendor components),but when i run the server,the console show common.js and mycomponent.js can not load ,and then i run npm run serve it's output a main.js which i ain't defined.